美文网首页
Remix-ide本地安装错误

Remix-ide本地安装错误

作者: KoooOooooK | 来源:发表于2020-03-08 20:19 被阅读0次

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

verbose node v10.19.0
verbose npm  v6.13.4
error code ELIFECYCLE
error errno 1
error scrypt@6.0.3 install: `node-gyp rebuild`
error Exit status 1
error Failed at the scrypt@6.0.3 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本地安装错误

      本文链接:https://www.haomeiwen.com/subject/rhbjdhtx.html