**
windows本地下載remix 教程
**
需要準備:
1.nodejs
2.window操作系統
3.gitbash
準備工作,打開powershell:
需要安裝windows-build-tools
安裝命令: npm install --global windows-build-tools --vs2015
成功後檢查 npm list -g --depth 0
注意,由於我測了很多次,在這裏繼續下載remix會出錯,版本原因,所以選擇去gitbash下載
打開git
如果這裏報錯,請降低版本,試着下載[email protected]
成功後運行
但是我們還需要一件事:下載本地的solidity編譯器版本
方法:
任意位置新建一個 目錄,如solc-bin
cd solc-bin
執行git clone https://github.com/ethereum/solc-bin.git
可以把不需要的版本刪掉
最後將需要的拷貝到,remix-ide的安裝目錄下 node_modules\remix-ide\assets。{不知道目錄在哪裏,請在資源管理器中搜索 remix-ide }
然後修改node_modules\remix-ide\build\app.js文件
搜索 baseurl: 'https://solc-bin.ethereum.org/bin
替換爲 baseurl: ‘http://127.0.0.1:8080/assets’
運行remix-ide即可,記得清楚緩存!!!