【发布时间】:2018-01-03 17:09:10
【问题描述】:
我正在尝试在 VSTS 默认代理上构建 angular 5 App,但它失败了。我使用托管代理它显示版本错误,说它不是最新的。有没有办法做到这一点。
2018-01-01T19:04:36.3676392Z 17 error Windows_NT 6.3.9600
2018-01-01T19:04:36.3676620Z 18 error argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "run" "build" "--prod"
2018-01-01T19:04:36.3676866Z 19 error node v6.9.1
2018-01-01T19:04:36.3677050Z 20 error npm v3.10.8
2018-01-01T19:04:36.3677231Z 21 error code ELIFECYCLE
2018-01-01T19:04:36.3677432Z 22 error pet-sys@0.0.0 build:ng build
2018-01-01T19:04:36.3677619Z 22 error Exit status 1
2018-01-01T19:04:36.3677814Z 23 error Failed at the pet-sys@0.0.0 build script 'ng build'.
2018-01-01T19:04:36.3678039Z 23 error Make sure you have the latest version of node.js and npm installed.
2018-01-01T19:04:36.3678253Z 23 error If you do, this is most likely a problem with the pet-sys package,
2018-01-01T19:04:36.3678452Z 23 error not with npm itself.
2018-01-01T19:04:36.3678673Z 23 error Tell the author that this fails on your system:
2018-01-01T19:04:36.3678861Z 23 error ng build
2018-01-01T19:04:36.3679058Z 23 error You can get information on how to open an issue for this project with:
2018-01-01T19:04:36.3679278Z 23 error npm bugs pet-sys
2018-01-01T19:04:36.3679477Z 23 error Or if that isn't available, you can get their info via:
2018-01-01T19:04:36.3679673Z 23 error npm owner ls pet-sys
2018-01-01T19:04:36.3679886Z 23 error There is likely additional logging output above.
2018-01-01T19:04:36.3680079Z 24 verbose exit [ 1, true ]'
以下链接包含托管代理构建的所有日志
之后,我尝试使用托管在安装了最新节点和 npm 的服务器中的默认代理,并按如下方式更新 CAPABILITIES
然后我尝试使用该代理进行构建并显示错误,
【问题讨论】:
-
你的构建定义是什么?你能在这里显示整个构建日志吗?
-
@MarinaLiu-MSFT 我已经更新了日志
-
你能比较一下你在 package.json 中指定的@angular/cli 版本和你在构建代理机器上安装的版本吗?您还可以在一个驱动器中展示您的应用吗?
-
在我的构建代理机器和项目版本相同,所以我可以在本地构建,但我不知道如何将它添加到我的构建代理中。@MarinaLiu-MSFT
-
如果你能帮助我创建支持 node 和 msbuild 的新构建代理,我真的很感激。@MarinaLiu-MSFT
标签: node.js azure-pipelines angular5 azure-pipelines-release-pipeline