如何在Heroku上部署angular应用程序时修复H10错误

时间:2019-01-09 06:20:19

标签: angular heroku deployment

当我部署Angular App on heroku时,会出现此错误。我已经设置了端口以及package.json文件,但错误仍然存​​在。

2019-01-08T23:35:43.000469+00:00 app[web.1]: npm ERR! spawn ENOENT
2019-01-08T23:35:43.000834+00:00 app[web.1]: npm ERR!
2019-01-08T23:35:43.001042+00:00 app[web.1]: npm ERR! Failed at the guru-new-able@0.0.0 start script.
2019-01-08T23:35:43.001212+00:00 app[web.1]: npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
2019-01-08T23:35:43.010538+00:00 app[web.1]:
2019-01-08T23:35:43.011113+00:00 app[web.1]: npm ERR! A complete log of this run can be found in:
2019-01-08T23:35:43.011329+00:00 app[web.1]: npm ERR!     /app/.npm/_logs/2019-01-08T23_35_43_003Z-debug.log
2019-01-09T04:50:40.592068+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=radiant-shore-54037.herokuapp.com request_id=284
5f0dd-bafc-4c84-8eca-853f7fa53daf fwd="202.47.40.183" dyno= connect= service= status=503 bytes= protocol=https
2019-01-09T04:50:40.970387+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=radiant-shore-54037.herokuapp.com req
uest_id=db67f6c8-7e0c-4e45-9bf6-bd80816925a1 fwd="202.47.40.183" dyno= connect= service= status=503 bytes= protocol=https

谢谢。

0 个答案:

没有答案