错误:我无法弄清楚为什么它没有推送到Heroku。
"main": "starter.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"client-install": "npm install --prefix client",
"client": "npm start --prefix client",
"start": "nodemon starter.js",
"dev": "concurrently \"npm start\" \"npm run client\" ",
"heroku-postbuild": "NPM_CONFIG_PRODUCTION=false npm install --prefix client && npm run build --prefix client"
},
"dependencies": {
"babel-preset-env": "^1.7.0",
"babel-register": "^6.26.0",
"bcryptjs": "^2.4.3",
"body-parser": "^1.18.3",
"concurrently": "^4.1.0",
"cors": "^2.8.5",
"express": "^4.16.4",
"jsonwebtoken": "^8.4.0",
"mongoose": "^5.3.12",
"nodemon": "^1.18.4",
"passport": "^0.4.0",
"passport-jwt": "^4.0.0",
"validator": "^10.9.0"
}
构建失败
远程:
远程:很抱歉此构建失败!您可以在此处解决常见问题:
远程:https://devcenter.heroku.com/articles/troubleshooting-node-deploys
远程:
远程:一些可能的问题:
远程:
远程:-在package.json中未指定的节点版本
远程:https://devcenter.heroku.com/articles/nodejs-support#specifying-a-node-js-version
远程:
远程:爱,
远程:Heroku
推送被拒绝,无法编译Node.js应用。