【问题标题】:Push rejected, fail to compile Node js app推送被拒绝,无法编译 Node js 应用程序
【发布时间】:2020-03-12 07:32:20
【问题描述】:

heroku 推送失败,因为 Bcrypt 无法通过 npm 安装 使用节点:v13.9.0 Npm:v6.13.7

gyp ERR! cwd
> /tmp/build_7e5a09f10b31aa1fe0f18582eece38dd/node_modules/grpc
>        gyp ERR! node -v v13.10.1
>        gyp ERR! node-gyp -v v5.0.7
>        gyp ERR! not ok 
>        node-pre-gyp ERR! build error 
>        node-pre-gyp ERR! stack Error: Failed to execute
> 

> npm ERR! code ELIFECYCLE
>        npm ERR! errno 1
>        npm ERR! grpc@1.20.2 install: `node-pre-gyp install --fallback-to-build --library=static_library`
>        npm ERR! Exit status 1
>        npm ERR! 
>        npm ERR! Failed at the grpc@1.20.2 install script.

【问题讨论】:

    标签: node.js heroku


    【解决方案1】:

    这里的基本问题很可能是 grpc 版本 1.20.2 太旧以至于它不支持 Node 13。我建议使用较新版本的 grpc 或较旧版本的 Node。节点 12 应该可以正常工作。

    【讨论】:

    • 我尝试使用节点 12 但它解决了问题所以我应该使用最新版本的 grpc 谢谢❤️
    猜你喜欢
    • 2014-05-24
    • 2018-12-16
    • 1970-01-01
    • 1970-01-01
    • 2015-10-01
    • 2014-02-08
    • 2014-04-14
    • 2023-03-07
    • 2020-06-05
    相关资源
    最近更新 更多