【发布时间】:2020-09-04 00:19:09
【问题描述】:
我试图在我的项目中运行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)
我使用的是 10.15.3 node 版本和 6.4.1 npm 版本。
我该如何解决这个错误?
【问题讨论】:
-
你使用的是 windows、mac、linux 吗?
-
在Linux上@JoshuaTerrill
-
可能是它不喜欢你运行 sudo,你可能需要用 unsafe-perm 命令运行 install 命令:docs.npmjs.com/misc/config#unsafe-perm