【问题标题】:I am facing problem with a deployment of my app on Heroku我在 Heroku 上部署我的应用程序时遇到问题
【发布时间】:2022-01-24 21:28:14
【问题描述】:
2021-12-24T04:43:27.112706+00:00 app[web.1]: npm ERR! code ELIFECYCLE
2021-12-24T04:43:27.112946+00:00 app[web.1]: npm ERR! errno 1
2021-12-24T04:43:27.118189+00:00 app[web.1]: npm ERR! DrugChain@1.0.0 start: `node server.js`
2021-12-24T04:43:27.118270+00:00 app[web.1]: npm ERR! Exit status 1
2021-12-24T04:43:27.118387+00:00 app[web.1]: npm ERR!
2021-12-24T04:43:27.118471+00:00 app[web.1]: npm ERR! Failed at the DrugChain@1.0.0 start script.
2021-12-24T04:43:27.118553+00:00 app[web.1]: npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
2021-12-24T04:43:27.136514+00:00 app[web.1]:
2021-12-24T04:43:27.136644+00:00 app[web.1]: npm ERR! A complete log of this run can be found in:
2021-12-24T04:43:27.136713+00:00 app[web.1]: npm ERR!     /app/.npm/_logs/2021-12-24T04_43_27_119Z-debug.log
2021-12-24T04:43:27.267717+00:00 heroku[web.1]: Process exited with status 1
2021-12-24T04:43:27.332502+00:00 heroku[web.1]: State changed from starting to crashed
2021-12-24T04:43:31.584721+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=drug-guard-web-app.herokuapp.com request_id=4a78fdb8-0a38-42ae-bf95-39e6c677bff3 fwd="37.111.206.26" dyno= connect= service= status=503 bytes= protocol=https
2021-12-24T04:43:32.204382+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=drug-guard-web-app.herokuapp.com request_id=844ade39-826a-4094-9e72-d1265fb2c47e fwd="37.111.206.26" dyno= connect= service= status=503 bytes= p

【问题讨论】:

    标签: node.js npm heroku


    【解决方案1】:

    不太确定,但请试试这个。

    1. 删除package-lock.json文件和node_modules文件夹
    2. 然后执行 npm cache clean npm cache clean --force
    3. 运行npm install
    4. 然后尝试再次推送到 heroku

    【讨论】:

    • 我试过这些。但是还没用。
    • 这可能是内存空间的问题或一些不良的依赖关系
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-01-18
    • 1970-01-01
    • 2020-10-05
    • 2019-09-06
    • 2015-11-20
    • 2018-11-06
    相关资源
    最近更新 更多