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 Mint 17.1
- gcc 版本 4.8.2 (Ubuntu
4.8.2-19ubuntu1)
- Python 2.7.6
- [电子邮件受保护] /cdn-cgi/l/email-protection
- 节点0.12.2
在哪里可以找到有关在 Linux 上安装 bcrypt 的教程以及我需要的系统工具?
The node_module_register
内部 API 通过 commit 添加到 v0.11.11 中的 Node.js76b9846 https://github.com/joyent/node/commit/76b98462e589a69d9fd48ccb9fb5f6e96b539715.
The bcrypt
module 是一个 C++ 插件,必须针对运行它们的 Node.js 版本进行编译。
我最好的猜测是,您已将其编译为与 Node.js v0.12.x 一起使用,但尝试使用 v0.10.x 运行它
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)