You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Azure DevOps Pipeline中npm build失败求助(Angular 9.0.1)

Azure DevOps Pipeline构建Angular项目dist文件失败

我在Azure DevOps Pipeline中构建Angular项目的dist文件时遇到问题,相关错误截图如下:
构建错误截图

我的package.json中scripts部分代码如下:

"name": "aimportal",
  "version": "0.0.0",
  "scripts": {
    "ng": "ng",
    "start": "ng serve",
    "build": "ng build --prod --aot --vendor-chunk --common-chunk --delete-output-path --buildOptimizer --output-hashing none --watch",
    "test": "ng test",
    "lint": "ng lint",
    "e2e": "ng e2e"
  },

当前使用Angular版本为9.0.1,我尝试删除package.json后重新生成,并使用与本地一致的Node.js版本,但问题仍未解决。

内容的提问来源于stack exchange,提问作者venu

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.08.12 02:15:33