gpt4 book ai didi

javascript - npm 无法安装 scrypt。 Node gyp 重建

转载 作者:太空宇宙 更新时间:2023-11-04 01:23:03 25 4
gpt4 key购买 nike

我想运行区 block 链应用程序,但出现此错误。

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! scrypt@6.0.3 install: node-gyp rebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the scrypt@6.0.3 install script.
npm ERR! This is probably not a problem with npm.

上面可能有额外的日志输出。

我尝试再次删除node_modules、npm缓存验证和npm install。我已卸载并重新安装 npmnodejs。我的 npm 版本是 6.12.0node 版本 v12.13.0

最佳答案

https://github.com/ethereum/web3.js/issues/1066#issuecomment-338841841

从此链接:

I've solved this using the following steps

npm install --global --production windows-build-tools
node-gyp configure --msvs_version=2015
npm config set python /path/to/executable/python2.7
npm install web3 --save
<小时/>

而且,我认为您可以按照以下步骤修复 node-gyp:

https://github.com/nodejs/node-gyp

关于javascript - npm 无法安装 scrypt。 Node gyp 重建,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58572297/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com