Accessing 'NPM2Feed' Azure Artifacts

Modified on Tue, 3 Jun at 1:45 PM

STEP 1: Run the following command.


npm install -g vsts-npm-auth --registry https://registry.npmjs.com --always-auth false




STEP 2: Add a .npmrc file to your Angular project, in the same directory as your package.json file. Add the following lines to the .npmrc file:


registry=https://pkgs.dev.azure.com/pegboard/_packaging/NPM2Feed/npm/registry/

always-auth=true




STEP 3: Run the following command to get an Azure Artifacts token added to your user-level .npmrc file.


vsts-npm-auth -config .npmrc

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article