尝试将Node.js应用程序部署到heroku,但是在使用时git push heroku master
我得到以下跟踪(仅显示整个跟踪的一部分,但是我认为这是问题的一部分-如果不告诉我):
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: - Dangerous semver range (>) in engines.node
remote: https://devcenter.heroku.com/articles/nodejs-support#specifying-a-node-js-version
remote:
remote: Love,
remote: Heroku
remote:
remote:
remote: ! Push rejected, failed to compile Node.js app
package.json文件可与其他人的heroku一起正常工作,因此这似乎不是问题。
有什么想法让我知道。
谢谢
最佳答案
重做
git add .
git commit -a -m'comment'
git push
请引用
heroku push rejected failed to compile node.js app
Push rejected, failed to compile Node.js app heroku
关于node.js - Heroku Deploy- "Push rejected, failed to compile Node.js app",我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/33088110/