!HEROKU:[远程拒绝]主机->主机(预接收挂钩被拒绝)错误:无法推送某些引用

时间:2020-03-31 20:58:27

标签: node.js heroku npm

一段时间以来,我一直在尝试解决这个问题,除了从头开始重建我的应用程序外,我不知道下一步该怎么做。当我尝试部署到heroku时,出现以下错误。我使用相同的步骤构建了另一个应用,并且上传成功,但是由于某种原因,这给了我一个我从未见过的错误。我已经查看了有关此主题的其他stackoverflow问题,它们都要求构建日志,因此在下面。有什么想法吗?

感谢您的帮助!

-----> Build
       Running heroku-postbuild

       > goals-against-united@1.0.0 heroku-postbuild /tmp/build_6320c60ef6ee13062fee2194118bc2df
       > NPM_CONFIG_PRODUCTION=false npm install --prefix client && npm run build --prefix client

       up to date in 0.282s
       found 0 vulnerabilities

npm ERR! code ENOENT
npm ERR! syscall open
npm ERR! path /tmp/build_6320c60ef6ee13062fee2194118bc2df/client/package.json
npm ERR! errno -2
npm ERR! enoent ENOENT: no such file or directory, open '/tmp/build_6320c60ef6ee13062fee2194118bc2df/client/package.json'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent 
npm ERR! A complete log of this run can be found in:
npm ERR!     /tmp/npmcache.fwONU/_logs/2020-03-31T20_51_10_439Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 254
npm ERR! goals-against-united@1.0.0 heroku-postbuild: `NPM_CONFIG_PRODUCTION=false npm install --prefix client && npm run build --prefix client`
npm ERR! Exit status 254
npm ERR! 
npm ERR! Failed at the goals-against-united@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.fwONU/_logs/2020-03-31T20_51_10_459Z-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

       Some possible problems:

       - node_modules checked into source control
         https://blog.heroku.com/node-habits-2016#9-only-git-the-important-bits

       Love,
       Heroku

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

0 个答案:

没有答案
相关问题