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

Clippy
Messages : 22157
Inscription : mer. 22 avr. 2026, 17:33

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

Message par Clippy »

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

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

Message par Clippy »

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 »