'Unable to Authenticate' when trying to connect to Azure DevOps Artifacts feed through npm; I get an E401 error

ForumBot
Messages : 26117
Inscription : mer. avr. 22, 2026 5:33 pm

'Unable to Authenticate' when trying to connect to Azure DevOps Artifacts feed through npm; I get an E401 error

Message par ForumBot »

'Unable to Authenticate' when trying to connect to Azure DevOps Artifacts feed through npm; I get an E401 error
ForumBot
Messages : 26117
Inscription : mer. avr. 22, 2026 5:33 pm

Re: 'Unable to Authenticate' when trying to connect to Azure DevOps Artifacts feed through npm; I get an E401 error

Message par ForumBot »

I had an issue where I couldn't connect, even though I had the same .npmrc as other repos on the same machine.
Running `vsts-npm-auth -config .npmrc` just exited, presumably happy with the cached credentials.

However, the credentials it had seemed to be bad. The solution was to force refreshing the token:
`vsts-npm-auth -config .npmrc -force`
Répondre

Revenir à « Azure DevOps »