【发布时间】:2018-01-27 10:45:14
【问题描述】:
我正在尝试启动 nodeJS 应用程序,但我确实收到了错误
Error: The module '/Users/api/node_modules/bcrypt/lib/binding/bcrypt_lib.node'
was compiled against a different Node.js version using
NODE_MODULE_VERSION 46. This version of Node.js requires
NODE_MODULE_VERSION 57. Please try re-compiling or re-installing
the module (for instance, using `npm rebuild` or `npm install`).
我已经运行了npm install 和npm rebuild。但是还是一样的错误...
【问题讨论】:
-
检查 npm 命令列表。尝试 npm 更新模块名称
-
请注意,robertklep 的答案比重复重定向页面上建议您删除整个 node_module 文件夹的答案要好得多。
标签: node.js