NG绒毛和NG测试在AWS管道构建步骤中冻结/悬挂
最近,我们的AWS Codepipeline中的构建步骤开始在1小时后随着build_timeout失败。在检查日志后,事实证明,最后一个命令运行是NG皮棉,报告了成功,但从未返回控制权。
Recently the build step in our AWS codepipeline started failing with BUILD_TIMEOUT after 1 hour. Upon inspecting the logs, it turns out the last command run was ng lint which reported success but never returned control to bash.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
事实证明,这是因为我们使用
npm install -g @angular
而无需固定版本。最近开始安装较新版本的Angular -14.0.0-导致冻结。也许这是角度的错误。我们通过将版本固定到对我们有用的最后一个版本来修复 -
npm install -g @angular/ [email  procepted]
It turned out this is because we use
npm install -g @angular
without pinning the version. This had recently started installing a newer version of Angular - 14.0.0 - which causes the freezing. Perhaps this is a bug in Angular.We fixed that by pinning the version to the last one which worked for us -
npm install -g @angular/[email protected]