我正在尝试启动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`).
Run Code Online (Sandbox Code Playgroud)
我已经运行npm install和npm rebuild.但仍然是同样的错误......
rob*_*lep 33
该bcrypt程序包需要重建,因为它最初安装了另一个版本的Node.js.
试试这个:
npm rebuild bcrypt --update-binary
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
26270 次 |
| 最近记录: |