Unable to authenticate Azure Devops

Sami C.
1 min readMay 9, 2020

--

I got this error today after a NPM install:

Unable to authenticate, need: Bearer authorization_uri=https://login.windows.net/3f1fdbd9-76ab-4108-bb39-23e4cdb0fe03, Basic realm="https://pkgsprodeus21.pkgs.visualstudio.com/", TFS-Federated

Here are the steps to fix it!

Step 1 — install vsts-npm-auth

Run this install command:

npm install -g vsts-npm-auth

Step 2 — fetch credentials

Run the following command:

vsts-npm-auth -config .npmrc

Voila! That’s all, you should now be able to npm install the packages in your project!

Enjoy!

--

--

Sami C.
Sami C.

Written by Sami C.

Freelance Software Engineer

Responses (5)