[英]Error when I run npm install Error: 404 Not Found: 7zip-bin@~4.1.0
[英]Why I get error 404 in bcrypt when I run npm install?
我试图在我的项目中运行sudo npm install
并且出现下一个错误: Tried to download(404): https://github.com/kelektiv/node.bcrypt.js/releases/download/v1.0.3/bcrypt_lib-v1.0.3-node-v64-linux-x64.tar.gz node-pre-gyp ERR. Pre-built binaries not found for bcrypt@1.0.3 and node@10.15:3 (node-v64 ABI) (falling back to source compile with node-gyp) node-pre-gyp ERR: Tried to download(undefined). https.//github.com/kelektiv/node.bcrypt.js/releases/download/v1.0.3/bcrypt_lib-v1.0.3-node-v64-linux-x64.tar.gz node-pre-gyp ERR. Pre-built binaries not found for bcrypt@1.0.3 and node@10.15.3 (node-v64 ABI) (falling back to source compile with node-gyp)
Tried to download(404): https://github.com/kelektiv/node.bcrypt.js/releases/download/v1.0.3/bcrypt_lib-v1.0.3-node-v64-linux-x64.tar.gz node-pre-gyp ERR. Pre-built binaries not found for bcrypt@1.0.3 and node@10.15:3 (node-v64 ABI) (falling back to source compile with node-gyp) node-pre-gyp ERR: Tried to download(undefined). https.//github.com/kelektiv/node.bcrypt.js/releases/download/v1.0.3/bcrypt_lib-v1.0.3-node-v64-linux-x64.tar.gz node-pre-gyp ERR. Pre-built binaries not found for bcrypt@1.0.3 and node@10.15.3 (node-v64 ABI) (falling back to source compile with node-gyp)
我使用 10.15.3 节点版本和 6.4.1 npm 版本。
我该如何解决这个错误?
因为它看起来是节点 gyp 的问题。 首先在linux安装build-essential
。
sudo apt-get install build-essential
之后你需要安装python-dev
sudo apt-get install python-dev
就是这样,现在您需要重新安装bcrypt
package。
删除节点模块文件。 然后使用sudo npm i bcrypt --save
手动安装bcrypt
。 然后运行命令sudo npm i
。
如果这不起作用,请尝试不使用sudo
命令。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.