Azure-pipelines-tasks: Error when npm installing using azure artifacts registry in pipelines

Created on 23 Jan 2020  路  5Comments  路  Source: microsoft/azure-pipelines-tasks

Required Information

Setting registry - npm config set registry https://azure.devops/registry...
Then installing node modules - npm install

Error: 403 403 Forbidden - GET https://azure.devops/registry/@babel/plugin-proposal-optional-chaining/-/plugin-proposal-optional-chaining-7.8.3.tgz
403 In most cases, you or one of your dependencies are requesting
403 a package version that is forbidden by your security policy.

I would expect to be upstream to npm registry if package is not found

npm - upstream (https://registry.npmjs.org/)

Environment

  • Server - Azure Pipelines
Artifacts triage

Most helpful comment

How to check if I have permission in azure devops to read and write artifacts and if not then how to add it ?

All 5 comments

Is your feed configured to use the NPM public registry as an upstream? How are you authenticating to the feed? It is possible you don't have permission to ingest that package from the public upstream to your Azure Artifacts feed

It is to do with permissions on azure devops. Can be closed.

It is to do with permissions on azure devops. Can be closed.

I'm having the same error in a build pipeline (npm install from dev machine works) what did you change?

Is your registry the same for both dev machine and pipeline

If you have the same, you should get the same error. Make sure you have permission in azure devops to read and write artifacts.

How to check if I have permission in azure devops to read and write artifacts and if not then how to add it ?

Was this page helpful?
0 / 5 - 0 ratings