【发布时间】:2020-02-15 18:38:56
【问题描述】:
在 heroku 平台上部署我的 Angular 应用程序时,我收到此错误日志。
我一直在关注这个链接来配置 angular-cli.json 和其他一些东西。
https://itnext.io/how-to-deploy-angular-application-to-heroku-1d56e09c5147
-----> 构建 运行 heroku-postbuild > angular-5-formularis@1.0.0 heroku-postbuild /tmp/build_254071f3c66ba5811ab2e3b07c9696c2 > ng 构建 --prod 在 .angular-cli.json 中找不到任何应用程序。 npm 错误!代码生命周期 npm 错误!错误号 1 npm 错误! angular-5-formularis@1.`0.0 heroku-postbuild: `ng build --prod` npm 错误!退出状态 1 npm 错误! npm 错误!在 angular-5-formularis@1.0.0 heroku-postbuild 脚本中失败。 npm 错误!这可能不是 npm 的问题。上面可能有额外的日志输出。 npm 错误!可以在以下位置找到此运行的完整日志: npm 错误! /tmp/npmcache.ekujC/_logs/2019-10-18T18_19_38_109Z-debug.log -----> 构建失败【问题讨论】:
-
您能检查一下您的 Angular cli json 文件中是否有属性应用程序吗?