npm adduser Incorrect username or password

Abhishek Parikh picture Abhishek Parikh · Jul 28, 2016 · Viewed 7.3k times · Source

I am newbie to npm. I am trying to create username password with npm.

Here is my code:

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

Username: abhishek
Password: 
Email: (this IS public) [email protected]

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

Answer

CDT picture CDT · Nov 22, 2016

If you have registered on https://www.npmjs.com/ and are sure that your username and password is correct, delete $HOME/.npmrc and try adduser again.

This may be caused by a bug recorded here: https://github.com/npm/npm/issues/6545