$ 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
Use your
github-usernamein theusername, use yourgithub-auth_tokenas yourpasswordand you're good to go.A link to the same is here: Github docs