我想运行区块链应用程序,但出现此错误。
错误!代码生命周期
错误!错误号 1
错误! scrypt@6.0.3 安装:
node-gyp rebuild
错误!退出状态 1
错误!
错误! scrypt@6.0.3 安装脚本失败。
错误!这可能不是 npm 的问题。
上面可能有额外的日志输出。
我尝试再次删除 node_modules、 npm
缓存验证和 npm install
。我已经卸载并重新安装 npm
和 nodejs
。我的 npm
版本是 6.12.0
和 node
版本 v12.13.0
原文由 Frieda 发布,翻译遵循 CC BY-SA 4.0 许可协议
https://github.com/ethereum/web3.js/issues/1066#issuecomment-338841841
从这个链接:
而且,我认为您可以按照以下步骤修复 node-gyp:
https://github.com/nodejs/node-gyp