Felix Orinda
Felix Orinda

Reputation: 743

Unable to authenticate github and npm

 $ npm login --scope=@username --registry=https://npm.pkg.github.com
 
 $ Username: username
 
 $ Password: ********
 
 $ Email: (this IS public) [email protected]
 
 $ npm ERR! code E401
 
 $ npm ERR! 401 Unauthorized - PUT $ https://npm.pkg.github.com/-/user/org.couchdb.user:forinda - Error authenticating user: Requires authentication
 
 $npm ERR! A complete log of this run can be found in:
 
 $npm ERR!     /home/orinda/.npm/_logs/2021-10-15T02_25_19_104Z-debug.log

Unable to authenticate npm registry and github I get a 401 error on filling in my password How can I fix this

Upvotes: 1

Views: 3458

Answers (1)

Felix Orinda
Felix Orinda

Reputation: 743

Use your github-username in the username, use your github-auth_token as your password and you're good to go.

Image with the directive on how to fill the login credentials

A link to the same is here: Github docs

Upvotes: 6

Related Questions