Error: /home/george/Desktop/myProject/node_modules/bcrypt/build/Release/bcrypt_lib.node: undefined symbol: node_module_register
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:364:17)
at require (module.js:380:17)
at bindings (/home/george/Desktop/myProject/node_modules/bcrypt/node_modules/bindings/bindings.js:76:44)
at Object.<anonymous> (/home/george/Desktop/myProject/node_modules/bcrypt/bcrypt.js:3:35)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
导致此错误的原因是什么?
我在哪里可以找到关于在linux上安装bcrypt以及我需要的系统工具的教程?
答案 0 :(得分:9)
通过提交76b9846将node_module_register
内部API添加到v0.11.11中的Node.js。
bcrypt
模块是一个C ++插件,必须根据它们运行的相同版本的Node.js进行编译。
我最好的猜测是你编译它以便与Node.js v0.12.x一起使用但是试图使用v0.10.x运行它