Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can't authenticate to npm.fontawesome.com registry to install pro packages

I have configured my host globally as described in font awesome documentation

I am running the following:

npm config set "@fortawesome:registry" https://npm.fontawesome.com/
npm config set "//npm.fontawesome.com/:_authToken" "${NPM_FONT_AWESOME_AUTH_TOKEN}"

I have the following error:

npm ERR! code E401
npm ERR! Unable to authenticate, need: Basic realm="https://npm.fontawesome.com/"

I expect to authenticate.

If you access from a browser https://npm.fontawesome.com/ , you have a Basic auth, I am not sure what I should expect here as I have never tried before.

This happened recently, the configuration was working for year. Is it me or fontawesome server?

How to fix fontawesome npm authentication?

like image 462
Dimitri Kopriwa Avatar asked Jan 20 '20 15:01

Dimitri Kopriwa


3 Answers

I am also got this same error!.. Below mentioned steps working for me...

Solutions

Step 1 : npm config delete "@fortawesome:registry" https://npm.fontawesome.com/

Step 2 : npm install / npm install <package_name>

or

otherwise add npm username & password.

like image 64
sweetnandha cse Avatar answered Oct 20 '22 01:10

sweetnandha cse


I have the same problem because previously I have config with difference auth token, so I remove previous registry config using the command:

npm config delete "@fortawesome:registry"
like image 38
Ari Pratomo Avatar answered Oct 20 '22 00:10

Ari Pratomo


npm install in windows make two files npmrc i remove that line and solve problem!

like image 33
Mani Avatar answered Oct 20 '22 01:10

Mani