我已經在Heroku中安裝了我的webapp Angular,但不起作用。 我嘗試了很多我在網上找到的解決方案,但沒有結果。Heroku應用程序錯誤Angularjs和Gulp
的package.json
{
"name": "yoangular",
"version": "0.0.0",
"dependencies": {},
"scripts": {
"start": "npm start"
},
"devDependencies": {
"gulp": "~3.9.0",
"gulp-autoprefixer": "~3.0.2",
"gulp-angular-templatecache": "~1.8.0",
"del": "~2.0.2",
"lodash": "~3.10.1",
"gulp-cssnano": "~2.1.1",
"gulp-filter": "~3.0.1",
"gulp-flatten": "~0.2.0",
"gulp-eslint": "~1.0.0",
"eslint-plugin-angular": "~0.12.0",
"gulp-load-plugins": "~0.10.0",
"gulp-size": "~2.0.0",
"gulp-uglify": "~1.4.1",
"gulp-useref": "~3.0.3",
"gulp-util": "~3.0.6",
"gulp-ng-annotate": "~1.1.0",
"gulp-replace": "~0.5.4",
"gulp-rename": "~1.2.2",
"gulp-rev": "~6.0.1",
"gulp-rev-replace": "~0.4.2",
"gulp-htmlmin": "~1.3.0",
"gulp-inject": "~3.0.0",
"gulp-protractor": "~2.1.0",
"gulp-sourcemaps": "~1.6.0",
"gulp-sass": "~2.0.4",
"gulp-angular-filesort": "~1.1.1",
"main-bower-files": "~2.9.0",
},
"engines": {
"node": ">=0.10.0"
},
"main": "gulpfile.js",
"author": "",
"license": "ISC",
"description": ""
}
Heroku的日誌
2017-10-05T19:54:38.573601 + 00:00應用程式[web.1]:NPM ERR!退出狀態134
2017-10-05T19:54:38.573414 + 00:00 app [web.1]:npm ERR! [email protected]開始:npm start
2017-10-05T19:54:38.573866 + 00:00 app [web.1]:npm ERR!
2017-10-05T19:54:38.574111 + 00:00 app [web.1]:npm ERR!在[email protected]啓動腳本中失敗。
2017-10-05T19:54:38.574295 + 00:00 app [web.1]:npm ERR!這可能不是npm的問題。上面可能還有其他日誌記錄輸出。
2017-10-05T19:54:38.579163 + 00:00 app [web.1]:npm WARN本地package.json存在,但是node_modules缺失,是否意味着要安裝? 2017-10-05T19:54:38.580016 + 00:00應用程式[web.1]: