0

The below is the complete error what I am getting:

npm ERR! code E401 npm ERR! Unable to authenticate, need: Bearer authorization_uri=https://login.windows.net/72f988bf-86f1-41af-91ab-2d7cd011db47, Basic realm="https://pkgsprodcus1.pkgs.visualstudio.com/", TFS-Federated

Help me to solve this problem.

Salahuddin Ahmed
  • 4,854
  • 4
  • 14
  • 35
  • Add a list of packages that you are trying to install. You can get the list from `package.json`. It seems like you are trying to install a private package and you don't have the necessary authentication – Ramtin Jun 28 '21 at 09:51
  • Are you trying to install packages from private repository ? – thug_ Jun 28 '21 at 10:23
  • Try this: https://stackoverflow.com/questions/59894644/npm-err-code-e401-unable-to-authenticate-need-bearer-authorization – Rahul K Jun 28 '21 at 11:31

1 Answers1

0

I was facing a similar issue and this got fixed by running the below command. Run the below command to remove the default registry

npm config set registry https://registry.npmjs.org/

or

npm config delete registry

NPM CONFIG DOCS

Eric Aya
  • 69,473
  • 35
  • 181
  • 253