remix配置本地开发环境

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/Lazybones_3/article/details/89367587

1.安装本地remix编辑器

npm install remix-ide -g

2.在当前目录打开编辑器

remix-ide

3.错误处理

2019 error Error while executing:
2019 error D:\Program Files\Git\cmd\git.EXE ls-remote -h -t git://github.com/frozeman/WebSocket-Node.git
2019 error
2019 error fatal: unable to look up github.com (port 9418) (Ӧ�ó���û�е��� WSAStartup������ WSAStartup ʧ�ܡ� )
2019 error
2019 error exited with error code: 128
2020 verbose exit [ 1, true ]

解决方法:

git config --global url."https://github.com/".insteadOf [email protected]:
git config --global url."https://".insteadOf git://

20335 verbose stack Error: [email protected] install: node-gyp rebuild
20335 verbose stack Exit status 1
20335 verbose stack at EventEmitter. (D:\Softwares\nodejs\node_modules\npm\node_modules\npm-lifecycle\index.js:301:16)
20335 verbose stack at EventEmitter.emit (events.js:189:13)
20335 verbose stack at ChildProcess. (D:\Softwares\nodejs\node_modules\npm\node_modules\npm-lifecycle\lib\spawn.js:55:14)
20335 verbose stack at ChildProcess.emit (events.js:189:13)
20335 verbose stack at maybeClose (internal/child_process.js:970:16)
20335 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:259:5)
20336 verbose pkgid [email protected]
20337 verbose cwd C:\Users\jinhua
20338 verbose Windows_NT 10.0.17763
20339 verbose argv “D:\Softwares\nodejs\node.exe” “D:\Softwares\nodejs\node_modules\npm\bin\npm-cli.js” “install” “remix-ide” “-g”
20340 verbose node v10.15.3
20341 verbose npm v6.4.1
20342 error code ELIFECYCLE
20343 error errno 1
20344 error [email protected] install: node-gyp rebuild
20344 error Exit status 1
20345 error Failed at the [email protected] install script.
20345 error This is probably not a problem with npm. There is likely additional logging output above.
20346 verbose exit [ 1, true ]

解决方法:

npm install --global --production windows-build-tools

参考:
https://github.com/ethereum/remix-ide
https://gist.github.com/taoyuan/bfa3ff87e4b5611b5cbe
https://github.com/nodejs/node-gyp

猜你喜欢

转载自blog.csdn.net/Lazybones_3/article/details/89367587