升级node版本后出现, Could not locate the bindings file
发布于 8 年前 作者 Yhaojing 19119 次浏览 来自 问答

原始node版本:v5.10.1 npm版本:3.8.3 升级node版本后程序执行不了于是乎又退回原始版本,但仍旧有问题:,求解决,

/Users/hnzb/WebstormProjects/hnczb-crowdfunding/node_modules/bindings/bindings.js:91 throw err ^

Error: Could not locate the bindings file. Tried: → /Users/hnzb/WebstormProjects/hnczb-crowdfunding/node_modules/bcrypt/build/bcrypt_lib.node → /Users/hnzb/WebstormProjects/hnczb-crowdfunding/node_modules/bcrypt/build/Debug/bcrypt_lib.node → /Users/hnzb/WebstormProjects/hnczb-crowdfunding/node_modules/bcrypt/build/Release/bcrypt_lib.node → /Users/hnzb/WebstormProjects/hnczb-crowdfunding/node_modules/bcrypt/out/Debug/bcrypt_lib.node → /Users/hnzb/WebstormProjects/hnczb-crowdfunding/node_modules/bcrypt/Debug/bcrypt_lib.node → /Users/hnzb/WebstormProjects/hnczb-crowdfunding/node_modules/bcrypt/out/Release/bcrypt_lib.node → /Users/hnzb/WebstormProjects/hnczb-crowdfunding/node_modules/bcrypt/Release/bcrypt_lib.node → /Users/hnzb/WebstormProjects/hnczb-crowdfunding/node_modules/bcrypt/build/default/bcrypt_lib.node → /Users/hnzb/WebstormProjects/hnczb-crowdfunding/node_modules/bcrypt/compiled/5.10.1/darwin/x64/bcrypt_lib.node at bindings (/Users/hnzb/WebstormProjects/hnczb-crowdfunding/node_modules/bindings/bindings.js:88:9) at Object.<anonymous> (/Users/hnzb/WebstormProjects/hnczb-crowdfunding/node_modules/bcrypt/bcrypt.js:3:35) at Module._compile (module.js:413:34) at Module._extensions…js (module.js:422:10) at Object.require.extensions.(anonymous function) [as .js] (/Users/hnzb/WebstormProjects/hnczb-crowdfunding/node_modules/babel-register/lib/node.js:166:7) at Module.load (module.js:357:32) at Function.Module._load (module.js:314:12) at Module.require (module.js:367:17) at require (internal/module.js:16:19) at Object.<anonymous> (user_operation.js:5:1) at Module._compile (module.js:413:34) at loader (/Users/hnzb/WebstormProjects/hnczb-crowdfunding/node_modules/babel-register/lib/node.js:158:5) at Object.require.extensions.(anonymous function) [as .js] (/Users/hnzb/WebstormProjects/hnczb-crowdfunding/node_modules/babel-register/lib/node.js:168:7) at Module.load (module.js:357:32) at Function.Module._load (module.js:314:12) at Module.require (module.js:367:17)

npm ERR! Darwin 15.3.0 npm ERR! argv “/usr/local/bin/node” “/usr/local/bin/npm” "start" npm ERR! node v5.10.1 npm ERR! npm v3.8.3 npm ERR! code ELIFECYCLE npm ERR! hnczb-crowdfunding@0.0.0 start: babel-node bin/www npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the hnczb-crowdfunding@0.0.0 start script ‘babel-node bin/www’. npm ERR! Make sure you have the latest version of node.js and npm installed. npm ERR! If you do, this is most likely a problem with the hnczb-crowdfunding package, npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR! babel-node bin/www npm ERR! You can get information on how to open an issue for this project with: npm ERR! npm bugs hnczb-crowdfunding npm ERR! Or if that isn’t available, you can get their info via: npm ERR! npm owner ls hnczb-crowdfunding npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request: npm ERR! /Users/hnzb/WebstormProjects/hnczb-crowdfunding/npm-debug.log

回到顶部