npm adduser 用户名或密码不正确

npm adduser Incorrect username or password

我是 npm 的新手。我正在尝试使用 npm 创建用户名密码。

这是我的代码:

abhi@abhi-Lenovo-Z50-70:~/Desktop/CSS_HTML/With_JS$ npm adduser

Username: abhishek
Password: 
Email: (this IS public) parikh5555@gmail.com

npm WARN adduser Incorrect username or password
npm WARN adduser You can reset your account by visiting: npm WARN adduser
npm WARN adduser https://npmjs.org/forgot npm WARN adduser
npm ERR! Linux 3.13.0-24-generic
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "adduser"
npm ERR! node v6.3.1
npm ERR! npm v3.10.3 npm ERR! code E401
npm ERR! Registry returned 401 for PUT on http://registry.npmjs.org/-/user/org.couchdb.user:abhishek

假设您的用户名正确,您可能忘记了密码。从文档中你应该 use this link to reset

可以在 by following this link 找到完整的文档,您也可以在那里注册。

我们必须在 https://www.npmjs.com/ 上注册才能添加新用户

如果您已在 https://www.npmjs.com/ 上注册并确定您的用户名和密码正确,请删除 $HOME/.npmrc 并重试 adduser

这可能是由此处记录的错误引起的:https://github.com/npm/npm/issues/6545