bcrypt_lib.node: 未定义符号: node_module_register
bcrypt_lib.node: undefined symbol: node_module_register
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)
导致此错误的原因是什么?
- 操作系统:LinuxMint 17.1
- gcc 版本 4.8.2(Ubuntu
4.8.2-19ubuntu1)
- Python 2.7.6
- node-gyp@1.0.3
- 节点 0.12.2
在哪里可以找到关于在 linux 上安装 bcrypt 以及我需要的系统工具的教程?
node_module_register
内部 API 已通过提交 76b9846.
添加到 v0.11.11 中的 Node.js
bcrypt
模块是一个 C++ 插件,必须针对与 运行 相同的 Node.js 版本进行编译。
我最好的猜测是,您已将其编译为与 Node.js v0.12.x 一起使用,但正在尝试 运行 使用 v0.10.x
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)
导致此错误的原因是什么?
- 操作系统:LinuxMint 17.1
- gcc 版本 4.8.2(Ubuntu 4.8.2-19ubuntu1)
- Python 2.7.6
- node-gyp@1.0.3
- 节点 0.12.2
在哪里可以找到关于在 linux 上安装 bcrypt 以及我需要的系统工具的教程?
node_module_register
内部 API 已通过提交 76b9846.
bcrypt
模块是一个 C++ 插件,必须针对与 运行 相同的 Node.js 版本进行编译。
我最好的猜测是,您已将其编译为与 Node.js v0.12.x 一起使用,但正在尝试 运行 使用 v0.10.x