簡體   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)

這個錯誤的原因是什么?

  • 操作系統: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

我在哪里可以找到關於在linux上安裝bcrypt以及我需要的系統工具的教程?

node_module_register內部API通過commit 76b9846添加到v0.11.11中的Node.js。

bcrypt模塊是一個C ++插件,必須根據它們運行的​​相同版本的Node.js進行編譯。

我最好的猜測是你編譯它以便與Node.js v0.12.x一起使用但是試圖使用v0.10.x運行它

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM