Heroku构建脚本错误:无法推送一些参考

时间:2019-06-11 09:08:07

标签: node.js git heroku npm

我按照heroku文档中的说明做所有事情。 我该怎么办?

这是我的heroku日志

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! applicationreact@0.1.0 build: `react-scripts build`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the applicationreact@0.1.0 build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR!     /tmp/npmcache.LoxFs/_logs/2019-06-11T16_28_34_410Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! applicationreact@1.0.0 heroku-postbuild: `NPM_CONFIG_PRODUCTION=false npm install --prefix client && npm run build --prefix client`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the applicationreact@1.0.0 heroku-postbuild script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR!     /tmp/npmcache.LoxFs/_logs/2019-06-11T16_28_34_426Z-debug.log
-----> Build failed

       We're sorry this build is failing! You can troubleshoot common issues here:
       https://devcenter.heroku.com/articles/troubleshooting-node-deploys

       If you're stuck, please submit a ticket so we can help:
       https://help.heroku.com/

       Love,
       Heroku

 !     Push rejected, failed to compile Node.js app.
 !     Push failed

我尝试从this page开始。 heroku buildpacks:set heroku/nodejs  我指定了一个节点和npm版本 我正在检查我的.gitignore

0 个答案:

没有答案