nodejs bcrypt错误:模块版本不匹配。预计46,得到51

时间:2017-12-15 11:13:43

标签: node.js ubuntu bcrypt

我已经尝试了其他答案中给出的所有解决方案,但仍然遇到此错误。 我删除了节点模块并重新安装(使用sudo和不使用)。试过npm rebuild。  package.json节点版本和运行节点版本相同。

节点版本7.7.2

npm版本4.3.0

[ E 2017-12-15 10:46:18.1523 17709/Tf age/Cor/App/Implementation.cpp:304 ]: Could not spawn process for application /var/www/travelapp/public_html: An error occurred w$
  Error ID: f5a8c564
  Error details saved to: /tmp/passenger-error-p5PoAx.html
  Message from application: An error occurred while starting the web application. It exited before signalling successful startup back to Phusion Passenger. Please read$
<h2>Raw process output:</h2>
<pre>
module.js:435
  return process.dlopen(module, path._makeLong(filename));
                 ^

Error: Module version mismatch. Expected 46, got 51.
    at Error (native)
    at Object.Module._extensions..node (module.js:435:18)
    at Module.load (module.js:344:32)
    at Function.Module._load (module.js:301:12)
    at Module.require (module.js:354:17)
    at Module.require (/usr/share/passenger/helper-scripts/node-loader.js:80:25)
    at require (internal/module.js:12:17)
    at Object.&lt;anonymous&gt; (/var/www/travelapp/public_html/node_modules/bcrypt/bcrypt.js:6:16)
    at Module._compile (module.js:410:26)

0 个答案:

没有答案