bcrypt_lib.node:未定义的符号:node_module_register [英] bcrypt_lib.node: undefined symbol: node_module_register
本文介绍了bcrypt_lib.node:未定义的符号: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)
此错误的原因是什么?
- 操作系统:Linux Mint 17.1
- gcc版本4.8.2(Ubuntu 4.8.2-19ubuntu1)
- Python 2.7.6
- node-gyp@1.0.3
- 节点0.12.2
- Operating system: Linux Mint 17.1
- gcc version 4.8.2 (Ubuntu 4.8.2-19ubuntu1)
- Python 2.7.6
- node-gyp@1.0.3
- node 0.12.2
在哪里可以找到有关在Linux上安装bcrypt以及所需的系统工具的教程?
推荐答案
The node_module_register
internal API was added to Node.js in v0.11.11 via commit 76b9846.
bcrypt
模块是一个C ++插件,必须针对它们所运行的相同版本的Node.js进行编译.
The bcrypt
module is a C++ addon, which must be compiled against the same version of Node.js that they are run on.
我最好的猜测是您已经编译了它以便与Node.js v0.12.x一起使用,但是正在尝试使用v0.10.x来运行它.
My best guess is that you've compiled it for use with Node.js v0.12.x but are trying to run it using v0.10.x
这篇关于bcrypt_lib.node:未定义的符号:node_module_register的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文