Hello,
I have a release pipeline containing the "npm install" task configured to use my artifact feed.
The feed has all default upstream sources set (including npmjs registry), as well as all users/groups with owner/contributor role set.
Users/groups are project collection administrators, project administrators, build administrators, build service, project collection build service and contributors,
all of which are allowed builds and releases, and project-scoped builds.
I have successfully connected to the feed from my VM and can publish my project there. Installing dependencies with "npm install package" on my VM also adds them to the feed.
As far as I can tell, everything is set up correctly, however, when running my release pipeline, it fails on the "npm install" task with the following:
...
2021-02-12T15:34:04.7654700Z 6602 silly saveTree | `-- tsutils@2.29.0
2021-02-12T15:34:04.7655024Z 6602 silly saveTree +-- typescript@3.5.3
2021-02-12T15:34:04.7655333Z 6602 silly saveTree `-- zone.js@0.9.1
2021-02-12T15:34:04.7655911Z 6603 verbose stack Error: 404 Not Found - GET https://pkgs.dev.azure.com/[REDACTED]/npm/registry/arr-union - NotFound
2021-02-12T15:34:04.7656764Z 6603 verbose stack at C:\Program Files\nodejs\node_modules\npm\node_modules\npm-registry-fetch\check-response.js:117:15
2021-02-12T15:34:04.7657360Z 6603 verbose stack at processTicksAndRejections (internal/process/task_queues.js:93:5)
2021-02-12T15:34:04.7657757Z 6604 verbose statusCode 404
2021-02-12T15:34:04.7658050Z 6605 verbose pkgid arr-union@3.1.0
2021-02-12T15:34:04.7658381Z 6606 verbose cwd D:\a\r1\a\_agam\frontend
2021-02-12T15:34:04.7658698Z 6607 verbose Windows_NT 10.0.14393
2021-02-12T15:34:04.7659190Z 6608 verbose argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "--production"
2021-02-12T15:34:04.7659676Z 6609 verbose node v14.15.4
2021-02-12T15:34:04.7659951Z 6610 verbose npm v6.14.10
2021-02-12T15:34:04.7660212Z 6611 error code E404
2021-02-12T15:34:04.7660747Z 6612 error 404 Not Found - GET https://pkgs.dev.azure.com/[REDACTED]/npm/registry/arr-union - NotFound
2021-02-12T15:34:04.7661253Z 6613 error 404
2021-02-12T15:34:04.7661573Z 6614 error 404 'arr-union@3.1.0' is not in the npm registry.
2021-02-12T15:34:04.7661986Z 6615 error 404 You should bug the author to publish it (or use the name yourself!)
2021-02-12T15:34:04.7662492Z 6616 error 404 It was specified as a dependency of 'frontend'
2021-02-12T15:34:04.7662864Z 6617 error 404 Note that you can also install from a
2021-02-12T15:34:04.7663214Z 6618 error 404 tarball, folder, http url, or git url.
2021-02-12T15:34:04.7663543Z 6619 verbose exit [ 1, true ]
2021-02-12T15:34:04.7663672Z
2021-02-12T15:34:04.7696314Z ##[error]Error: Npm failed with return code: 1
As far as I can tell (but am not certain of), adding a package to my feed by installing it on the VM resolves it for that package, but I wouldn't call that a solution.
I have found several similar threads, but none of the solutions proposed there were applicable in my case.
Also, I can't seem to find relevant tags for this question. Am I asking on the wrong site?