这是当我尝试执行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: If you're stuck, please submit a ticket so we can help:
remote: https://help.heroku.com/
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 estqfix.
remote:
To https://git.heroku.com/estqfix.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'https://git.heroku.com/estqfix.git'
我的package.json
文件是:
{
"name": "estqfix",
"version": "1.0.0",
"scripts": {
"start": "node server.js",
"heroku-postbuild": "cd client && npm install && npm run build"
},
"engines": {
"node": "18.17.1",
"npm": "9.6.7"
},
"main": "index.js",
"keywords": [],
"author": "",
"license": "ISC",
"description": ""
}
1条答案
按热度按时间euoag5mw1#
我的package.json文件是: