几天agao,我使用nodeJs构建后端,并成功将其部署到heroku。今天我构建完全相同的东西,但我没有部署它,我不知道如何解决这个问题 这是错误
remote: > bcrypt@1.0.3 install /tmp/build_e9e73855f7912a4acc55f89ae92f6e41/node_modules/bcrypt
remote: > node-pre-gyp install --fallback-to-build
remote:
remote: sh: 1: node-pre-gyp: Permission denied
remote: npm ERR! code ELIFECYCLE
remote: npm ERR! errno 126
remote: npm ERR! bcrypt@1.0.3 install: `node-pre-gyp install --fallback-to-build`
remote: npm ERR! Exit status 126
remote: npm ERR!
remote: npm ERR! Failed at the bcrypt@1.0.3 install script.
remote: npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
remote:
remote: npm ERR! A complete log of this run can be found in:
remote: npm ERR! /tmp/npmcache.55byY/_logs/2018-04-06T19_42_56_019Z-debug.log
我今天真的需要部署这个服务器。你能告诉我如何解决这个错误吗?我尝试过一些我发现的解决方案但没有任何效果。我甚至尝试在环境中安装python并设置路径
答案 0 :(得分:0)
npm install --save bcrypt-nodejs && npm uninstall --save bcrypt
答案 1 :(得分:0)
npm install --save bcryptjs && npm uninstall --save bcrypt
bcrypt-nodejs不再被主动维护。那就是为什么bcryptjs可以替代它!