Reputation: 743
$ 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
Reputation: 743
Use your github-username
in the username
, use your github-auth_token
as your password
and you're good to go.
A link to the same is here: Github docs
Upvotes: 6