windows 2012 servers 下 npm install bcrypt报错,尝试论坛多种方式未果,还有其他方式吗?
> bcrypt@2.0.1 install C:\Windows\system32\node_modules\bcrypt
> node-pre-gyp install --fallback-to-build
node-pre-gyp ERR! Tried to download(404): https://github.com/kelektiv/node.bcryp
t.js/releases/download/v2.0.1/bcrypt_lib-v2.0.1-node-v64-win32-x64-unknown.tar.g
z
node-pre-gyp ERR! Pre-built binaries not found for bcrypt@2.0.1 and node@10.0.0
(node-v64 ABI, unknown) (falling back to source compile with node-gyp)
MSBUILD : error MSB1009: 项目文件不存在。
开关:build/binding.sln
gyp ERR! build error
gyp ERR! stack Error: `C:\Program Files (x86)\MSBuild\14.0\bin\msbuild.exe` fail
ed with exit code: 1
gyp ERR! stack at ChildProcess.onExit (C:\Program Files\nodejs\node_modules\
npm\node_modules\node-gyp\lib\build.js:258:23)
gyp ERR! stack at ChildProcess.emit (events.js:182:13)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_proces
s.js:225:12)
gyp ERR! System Windows_NT 6.3.9600
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodej
s\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "build" "--fallb
ack-to-build" "--module=C:\\Windows\\system32\\node_modules\\bcrypt\\lib\\bindin
g\\bcrypt_lib.node" "--module_name=bcrypt_lib" "--module_path=C:\\Windows\\syste
m32\\node_modules\\bcrypt\\lib\\binding" "--napi_version=3" "--node_abi_napi=nap
i"
gyp ERR! cwd C:\Windows\system32\node_modules\bcrypt
gyp ERR! node -v v10.0.0
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok
node-pre-gyp ERR! build error
node-pre-gyp ERR! stack Error: Failed to execute 'C:\Program Files\nodejs\node.e
xe C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.j
s build --fallback-to-build --module=C:\Windows\system32\node_modules\bcrypt\lib
\binding\bcrypt_lib.node --module_name=bcrypt_lib --module_path=C:\Windows\syste
m32\node_modules\bcrypt\lib\binding --napi_version=3 --node_abi_napi=napi' (1)
node-pre-gyp ERR! stack at ChildProcess.<anonymous> (C:\Windows\System32\nod
e_modules\bcrypt\node_modules\node-pre-gyp\lib\util\compile.js:83:29)
node-pre-gyp ERR! stack at ChildProcess.emit (events.js:182:13)
node-pre-gyp ERR! stack at maybeClose (internal/child_process.js:947:16)
node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/chi
ld_process.js:236:5)
node-pre-gyp ERR! System Windows_NT 6.3.9600
node-pre-gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Windows\\Sy
stem32\\node_modules\\bcrypt\\node_modules\\node-pre-gyp\\bin\\node-pre-gyp" "in
stall" "--fallback-to-build"
node-pre-gyp ERR! cwd C:\Windows\system32\node_modules\bcrypt
node-pre-gyp ERR! node -v v10.0.0
node-pre-gyp ERR! node-pre-gyp -v v0.9.1
node-pre-gyp ERR! not ok
Failed to execute 'C:\Program Files\nodejs\node.exe C:\Program Files\nodejs\node
_modules\npm\node_modules\node-gyp\bin\node-gyp.js build --fallback-to-build --m
odule=C:\Windows\system32\node_modules\bcrypt\lib\binding\bcrypt_lib.node --modu
le_name=bcrypt_lib --module_path=C:\Windows\system32\node_modules\bcrypt\lib\bin
ding --napi_version=3 --node_abi_napi=napi' (1)
npm WARN enoent ENOENT: no such file or directory, open 'C:\Windows\system32\pac
kage.json'
npm WARN system32 No description
npm WARN system32 No repository field.
npm WARN system32 No README data
npm WARN system32 No license field.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! bcrypt@2.0.1 install: `node-pre-gyp install --fallback-to-build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the bcrypt@2.0.1 install script.
npm ERR! This is probably not a problem with npm. There is likely additional log
ging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Administrator\AppData\Roaming\npm-cache\_logs\2018-04-28T1
4_05_39_147Z-debug.log
C:\Windows\system32>```