简体   繁体   English

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)

What would be the causes for this error ? 这个错误的原因是什么?

  • Operating system: Linux Mint 17.1 操作系统:Linux Mint 17.1
  • gcc version 4.8.2 (Ubuntu 4.8.2-19ubuntu1) gcc版本4.8.2(Ubuntu 4.8.2-19ubuntu1)
  • Python 2.7.6 Python 2.7.6
  • node-gyp@1.0.3 node-gyp@1.0.3
  • node 0.12.2 节点0.12.2

Where can I find a tutorial about installing bcrypt on linux and the system tools that I need ? 我在哪里可以找到关于在linux上安装bcrypt以及我需要的系统工具的教程?

The node_module_register internal API was added to Node.js in v0.11.11 via commit 76b9846 . node_module_register内部API通过commit 76b9846添加到v0.11.11中的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. bcrypt模块是一个C ++插件,必须根据它们运行的​​相同版本的Node.js进行编译。

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 我最好的猜测是你编译它以便与Node.js v0.12.x一起使用但是试图使用v0.10.x运行它

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 内核模块中的未定义符号 - Undefined Symbol in Kernel Module 错误:找不到模块&#39;... / node_modules / sqlite3 / lib / binding / node-v14-linux-x64 / node_sqlite3.node&#39; - ERROR: Cannot find module '…/node_modules/sqlite3/lib/binding/node-v14-linux-x64/node_sqlite3.node' Python 库:未定义符号:_Py_FalseStruct - Python lib: undefined symbol: _Py_FalseStruct Linux下的node.js C ++插件中未定义的符号,为什么? - undefined symbol in node.js C++ addon under Linux, why? mongod:符号查找错误:mongod:未定义符号:_ZN4YAML6detail9node_data12empty_scalarB5cxx11 - mongod: symbol lookup error: mongod: undefined symbol: _ZN4YAML6detail9node_data12empty_scalarB5cxx11 node.js无法在/ usr / local / lib中使用lib - node.js could not use lib in /usr/local/lib node_modules/bcrypt:命令失败。 node-pre-gyp:权限被拒绝 - node_modules/bcrypt: Command failed. node-pre-gyp: Permission denied C ++与静态lib中的std :: string相关的未定义符号 - C++ Undefined symbol related to std::string in static lib 内核模块中的EXPORT_SYMBOL | insmod期间未定义的符号 - EXPORT_SYMBOL in kernel module | undefined symbol during insmod Linux节点模块版本不匹配 - Linux Node Module Version Mismatch
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM