Remix-ide本地安装错误

直接使用npm install remix-ide -g命令下载remix-ide,会有如下报错:

verbose node v10.19.0
verbose npm  v6.13.4
error code ELIFECYCLE
error errno 1
error [email protected] install: `node-gyp rebuild`
error Exit status 1
error Failed at the [email protected] install script.
error This is probably not a problem with npm. There is likely additional logging output above.
verbose exit [ 1, true ]

使用命令

npm install remix-ide -g --ignore-scripts

安装完成后,终端输入remix-ide,依旧报错:

Error: Cannot find module './build/Release/scrypt'

解决办法:
打开$HOME/.nvm/versions/node/v10.19.0/lib/node_modules/remix-ide/node_modules/scrypt/index.js,将require("./build/Release/scrypt")改为require("scrypt")

解决。

你可能感兴趣的:(Remix-ide本地安装错误)