npm 错误! grpc@1.20.0 安装脚本失败

时间:2021-04-16 20:05:18

标签: javascript node.js firebase heroku

当我使用标准命令推送到 Heroku 时,出现此错误 --- 与 grpc 有关:

    remote:        npm ERR! code ELIFECYCLE
remote:        npm ERR! errno 1
remote:        npm ERR! grpc@1.20.0 install: `node-pre-gyp install --fallback-to-build --library=static_library`
remote:        npm ERR! Exit status 1
remote:        npm ERR! 
remote:        npm ERR! Failed at the grpc@1.20.0 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.yHnQ0/_logs/2021-04-16T20_01_23_896Z-debug.log
remote: 
remote: -----> Build failed
remote:        
remote:        We're sorry this build is failing! You can troubleshoot common issues here:
remote:        https://devcenter.heroku.com/articles/troubleshooting-node-deploys
remote:        
remote:        Some possible problems:
remote:        
remote:        - node_modules checked into source control
remote:          https://devcenter.heroku.com/articles/node-best-practices#only-git-the-important-bits
remote:        
remote:        Love,
remote:        Heroku
remote:        
remote:  !     Push rejected, failed to compile Node.js app.
remote: 
remote:  !     Push failed
remote: Verifying deploy...
remote: 
remote: !       Push rejected to cam

我看到的主要内容是:

remote: npm ERR! grpc@1.20.0 install: `node-pre-gyp install --fallback-to-build --library=static_library`

为什么我会得到这个?

0 个答案:

没有答案