Arl_mo 发表于 2021-3-18 09:35

npm install bcrypt 报错,求大神解救

npm install bcrypt 报错,求大神解救


PS F:\Node\code\blog> npm install bcrypt

> bcrypt@5.0.1 install F:\Node\code\blog\node_modules\bcrypt
> node-pre-gyp install --fallback-to-build

node-pre-gyp ERR! install request to https://github.com/kelektiv/node.bcrypt.js/releases/download/v5.0.1/bcrypt_lib-v5.0
.1-napi-v3-win32-x64-unknown.tar.gz failed, reason: read ECONNRESET
node-pre-gyp WARN Pre-built binaries not installable for bcrypt@5.0.1 and node@10.13.0 (node-v64 ABI, unknown) (falling
back to source compile with node-gyp)
node-pre-gyp WARN Hit error request to https://github.com/kelektiv/node.bcrypt.js/releases/download/v5.0.1/bcrypt_lib-v5
.0.1-napi-v3-win32-x64-unknown.tar.gz failed, reason: read ECONNRESET
在此解决方案中一次生成一个项目。若要启用并行生成,请添加“/m”开关。
nothing.c
win_delay_load_hook.cc
nothing.vcxproj -> F:\Node\code\blog\node_modules\bcrypt\build\Release\\nothing.lib
blowfish.cc
bcrypt.cc
bcrypt_node.cc
win_delay_load_hook.cc
C:\Users\Administrator\.node-gyp\10.13.0\x64\node.lib : fatal error LNK1127: 库已损坏 [F:\Node\code\blog\node_modules\bc
ryp
t\build\bcrypt_lib.vcxproj]
gyp ERR! build error
gyp ERR! stack Error: `C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\MSBuild\15.0\Bin\MSBuild.exe` fail
ed with exit code: 1
gyp ERR! stack   at ChildProcess.onExit (F:\Node\node_modules\npm\node_modules\node-gyp\lib\build.js:262:23)
gyp ERR! stack   at ChildProcess.emit (events.js:182:13)
gyp ERR! stack   at Process.ChildProcess._handle.onexit (internal/child_process.js:240:12)
gyp ERR! System Windows_NT 6.1.7601
gyp ERR! command "F:\\Node\\node.exe" "F:\\Node\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "build" "-
-fallback-to-build" "--module=F:\\Node\\code\\blog\\node_modules\\bcrypt\\lib\\binding\\napi-v3\\bcrypt_lib.node" "--mod
ule_name=bcrypt_lib" "--module_path=F:\\Node\\code\\blog\\node_modules\\bcrypt\\lib\\binding\\napi-v3" "--napi_version=3
" "--node_abi_napi=napi" "--napi_build_version=3" "--node_napi_label=napi-v3"
gyp ERR! cwd F:\Node\code\blog\node_modules\bcrypt
gyp ERR! node -v v10.13.0
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
node-pre-gyp ERR! build error
node-pre-gyp ERR! stack Error: Failed to execute 'F:\Node\node.exe F:\Node\node_modules\npm\node_modules\node-gyp\bin\no
de-gyp.js build --fallback-to-build --module=F:\Node\code\blog\node_modules\bcrypt\lib\binding\napi-v3\bcrypt_lib.node -
-module_name=bcrypt_lib --module_path=F:\Node\code\blog\node_modules\bcrypt\lib\binding\napi-v3 --napi_version=3 --node_
abi_napi=napi --napi_build_version=3 --node_napi_label=napi-v3' (1)
node-pre-gyp ERR! stack   at ChildProcess.cmd.on (F:\Node\code\blog\node_modules\@mapbox\node-pre-gyp\lib\util\compile
.js:89:23)
node-pre-gyp ERR! stack   at ChildProcess.emit (events.js:182:13)
node-pre-gyp ERR! stack   at maybeClose (internal/child_process.js:962:16)
node-pre-gyp ERR! stack   at Process.ChildProcess._handle.onexit (internal/child_process.js:251:5)
node-pre-gyp ERR! System Windows_NT 6.1.7601
node-pre-gyp ERR! command "F:\\Node\\node.exe" "F:\\Node\\code\\blog\\node_modules\\@mapbox\\node-pre-gyp\\bin\\node-pre
-gyp" "install" "--fallback-to-build"
node-pre-gyp ERR! cwd F:\Node\code\blog\node_modules\bcrypt
node-pre-gyp ERR! node -v v10.13.0
node-pre-gyp ERR! node-pre-gyp -v v1.0.1
node-pre-gyp ERR! not ok
Failed to execute 'F:\Node\node.exe F:\Node\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js build --fallback-to-b
uild --module=F:\Node\code\blog\node_modules\bcrypt\lib\binding\napi-v3\bcrypt_lib.node --module_name=bcrypt_lib --modul
e_path=F:\Node\code\blog\node_modules\bcrypt\lib\binding\napi-v3 --napi_version=3 --node_abi_napi=napi --napi_build_vers
ion=3 --node_napi_label=napi-v3' (1)
npm WARN blog@1.0.0 No description
npm WARN blog@1.0.0 No repository field.

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! bcrypt@5.0.1 install: `node-pre-gyp install --fallback-to-build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the bcrypt@5.0.1 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!   C:\Users\Administrator\AppData\Roaming\npm-cache\_logs\2021-03-18T01_29_06_639Z-debug.log
PS F:\Node\code\blog> qq^A

dw72 发表于 2021-3-18 14:03

https://www.codeprj.com/blog/56cb1d1.html试试

Arl_mo 发表于 2021-3-22 11:43

dw72 发表于 2021-3-18 14:03
https://www.codeprj.com/blog/56cb1d1.html试试

不行,试过了
页: [1]
查看完整版本: npm install bcrypt 报错,求大神解救