无法验证 github 和 npm

Fel*_*nda 1 github npm-request npm-publish

 $ npm login --scope=@username --registry=https://npm.pkg.github.com
 
 $ Username: username
 
 $ Password: ********
 
 $ Email: (this IS public) example@gmail.com
 
 $ 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
Run Code Online (Sandbox Code Playgroud)

无法验证 npm 注册表和 github 我在填写密码时收到 401 错误 如何解决此问题

Fel*_*nda 6

github-username在 中使用 your username,将 yourgithub-auth_token作为 your password,然后就可以开始了。

包含有关如何填写登录凭据的指令的图像

此处有相同的链接:Github 文档