尝试部署应用程序时如何解决此错误-heroku CLI错误

时间:2018-11-14 12:00:14

标签: angularjs node.js heroku continuous-integration

当我尝试从URL访问应用程序时出现应用程序错误。这是日志中的错误

2018-11-14T10:57:51.683297+00:00 app[web.1]: npm ERR! easy-shop@0.0.0 start: ng服务 2018-11-14T10:57:51.683411+00:00 app[web.1]: npm ERR! spawn ENOENT 2018-11-14T10:57:51.683785+00:00 app[web.1]: npm ERR! 2018-11-14T10:57:51.683972+00:00 app[web.1]: npm ERR! Failed at the easy-shop@0.0.0 start script. 2018-11-14T10:57:51.684145+00:00 app[web.1]: npm ERR! This is probably not a problem with npm. There is likely additional logging output above. 2018-11-14T10:57:51.693817+00:00 app[web.1]: 2018-11-14T10:57:51.694093+00:00 app[web.1]: npm ERR! A complete log of this run can be found in: 2018-11-14T10:57:51.694272+00:00 app[web.1]: npm ERR! /app/.npm/_logs/2018-11-14T10_57_51_686Z-debug.log 2018-11-14T10:57:51.753202+00:00 heroku[web.1]: State changed from starting to crashed 2018-11-14T10:57:51.744306+00:00 heroku[web.1]: Process exited with status 1

帮帮我

1 个答案:

答案 0 :(得分:0)

ENOENT错误表明该文件在Heroku上不存在。 如果将其添加到.gitignore中,或者通常没有将其检入git中,则可能会发生这种情况。