I have integrated the steps and variables as specified and am still getting errors:
14884 verbose stack Error: 404 Not Found - GET https://registry.npmjs.org/@infragistics%2figniteui-angular - Not found
14884 verbose stack at /opt/hostedtoolcache/node/12.22.1/x64/lib/node_modules/npm/node_modules/npm-registry-fetch/check-response.js:117:15
14884 verbose stack at runMicrotasks ()
14884 verbose stack at processTicksAndRejections (internal/process/task_queues.js:97:5)
14885 verbose statusCode 404
14886 verbose pkgid @infragistics/igniteui-angular@12.0.3
14887 verbose cwd /home/vsts/work/1/s/UI
14888 verbose Linux 5.8.0-1033-azure
14889 verbose argv "/opt/hostedtoolcache/node/12.22.1/x64/bin/node" "/opt/hostedtoolcache/node/12.22.1/x64/bin/npm" "install"
14890 verbose node v12.22.1
14891 verbose npm v6.14.12
14892 error code E404
14893 error 404 Not Found - GET https://registry.npmjs.org/@infragistics%2figniteui-angular - Not found
14894 error 404
14895 error 404 '@infragistics/igniteui-angular@12.0.3' is not in the npm registry.
14896 error 404 You should bug the author to publish it (or use the name yourself!)
14897 error 404 It was specified as a dependency of 'UI'
14898 error 404 Note that you can also install from a
14899 error 404 tarball, folder, http url, or git url.
14900 verbose exit [ 1, true ]
##[error]Error: Npm failed with return code: 1
Finishing: npm install
I am directly injecting the variables (blocking IG token below) in my ui-pipelines.yml:
# Starter pipeline
# Start with a minimal pipeline that you can customize to build and deploy your code.
# Add steps that build, run tests, deploy, and more:
# https://aka.ms/yaml
trigger:
branches:
include:
- master
paths:
include:
- UI/*
pool:
vmImage: 'ubuntu-latest'
steps:
- script: npm config set @infragistics:registry https://packages.infragistics.com/npm/js-licensed/
displayName: 'Npm add registry'
- script: npm config set //packages.infragistics.com/npm/js-licensed/:always-auth=true
displayName: 'Npm config'
- script: npm config set //packages.infragistics.com/npm/js-licensed/:_auth=***************************************
displayName: 'Npm config auth'
- task: NodeTool@0
displayName: 'Use Node 12.x'
inputs:
versionSpec: '12.x'
- task: Npm@1
displayName: 'Angular CLI'
inputs:
command: custom
workingDir: UI
verbose: false
customCommand: 'install -g @angular/cli@latest'
- task: Npm@1
displayName: 'npm install'
inputs:
command: install
workingDir: UI
- task: Npm@1
displayName: 'Build'
inputs:
command: custom
workingDir: UI
verbose: false
customCommand: 'run build'
- task: ArchiveFiles@2
inputs:
rootFolderOrFile: '$(Build.SourcesDirectory)/UI/dist/commits'
includeRootFolder: false
archiveType: 'zip'
archiveFile: '$(Build.ArtifactStagingDirectory)/$(Build.BuildId).zip'
replaceExistingArchive: true
- task: PublishBuildArtifacts@1
inputs:
PathtoPublish: '$(Build.ArtifactStagingDirectory)'
ArtifactName: 'drop'
publishLocation: 'Container'
Can you please tell me why it's still failing?