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?
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.
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"
npm install in windows make two files npmrc i remove that line and solve problem!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With