I am trying to build angular 5 App on VSTS default agent, but it fails. I used hosted agent it show version error saying it's not up to date. Is there any way to do this.
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 [email protected] 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 [email protected] 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 ]'
following link contain all logs for hosted agent build
After that I tried to use my default agent which is hosted in my server which has installed latest node and npm and I update the CAPABILITIES as follows
then I tried to build using that agent and it show an error,