I have repo in git and trying to build with yaml in vsts. In repository there is only newly created angular project without any changes. When trying to run pipeline with default angular yaml i get following error when running "ng build --prod"
trigger:
- master
pool:
vmImage: 'ubuntu-latest'
steps:
- task: NodeTool@0
inputs:
versionSpec: '10.x'
displayName: 'Install Node.js'
- script: |
npm install -g @angular/cli
npm install
ng build --prod
displayName: 'npm install and build'
# Publish Artifacts
- task: PublishBuildArtifacts@1
inputs:
artifactName: dist
pathtoPublish: 'dist'