troubleshooting connectivity to azure pipeline artifacts for npm
Quite often we need use npm to connect to Azure devops artifact to download packages. First, the user needs to be authenticated. In order to do that, we need to run some commands depending on what OS we're currently using.
After running the command above and still get a 403 when connecting to the feed, then you can run the following to see which users id is being selected.
vsts-npm-auth -config .npmrc -v detailed
If a different user is selected, then you can try to
1. For older system, you can try to delete registry entry here - HKEY_CURRENT_USER\SOFTWARE\Microsoft\VSCommon\14.0\ClientServices\TokenStorage\VisualStudio\VssApp
2. Delete the folder for the users selected by vsts-npm-auth in your folder cached credentials
Once you have done this, re-run
vsts-npm-auth -config .npmrc -F
Comments