我想部署一個簡單的node.js應用程序到heroku,但它一直告訴我,「缺少腳本:開始」即使在添加它後的package.json 我packacge.json樣子: -Heroku日誌:「缺少腳本:開始」,即使它在:(
{
"name": "deploy_demo",
"version": "1.0.0",
"keywords": [
"util",
"functional",
"server",
"client",
"browser"
],
"author": "Babar",
"contributors": [],
"dependencies": {
"ejs": "^2.5.2",
"express": "^4.14.0"
},
"main": "main.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"start": "node main.js"
},
"license": "ISC",
"description": ""
}
我爲我的入口點代碼: main.js
Heroku的日誌: heroku logs
注:釷在應用程序在本地主機服務器工作正常 請幫助我,我在新的Node.js,由於
日Thnx很多它的工作原理 – Zub