npm 推送被拒绝,无法编译Node.js应用,英雄推

sauutmhj  于 2023-10-19  发布在  Node.js
关注(0)|答案(1)|浏览(176)

这是当我尝试执行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": ""
}
euoag5mw

euoag5mw1#

我的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": ""
}

相关问题