$ npm login fails with: That email has already been registered.
What / Why
I'm trying to login to npm to update a package.
n/a
When
All the time
Where
In the Terminal on Mac OS X
How
Current Behavior
When doing: $ npm login Get prompted for username ... type it in. Get prompted for password ... type it in. Get prompted for e-mail ... type it in.
Get: 400 Bad Request - PUT https://registry.npmjs.org/-/user/org.couchdb.user:blaasvaer - That email has already been registered.
Steps to Reproduce
See above steps
Expected Behavior
Well, to get logged in and be able to do $ npm publish
Who
Erhm, me?
Why does npm make me think I'm trying to sign UP instead of IN?
the CLI only has one action, "sign up or sign in".
http://npmjs.com/~blaasvaer is an org, not a user, so you can't log in as it. Perhaps you're trying to log in as https://www.npmjs.com/~samblaasvaer ?
I have the same problem
You won't be able to login with your original npm username anymore if you converted your npm user to an npm organization. During the process of the conversion, npm should have asked you to create a new username. This is the new username that you will have to log in with.
⭐ If you forgot the new username, you can find it on https://www.npmjs.com/ by logging in with your email.
⭐ If you don't know the new username's password, use this form to create a new password.
If in fact you are using a user not an org, change your password seems to fix it.
Use > npm adduser instead of > npm login
Those are the same.
For some reason, "after resetting password "... npm adduser worked ... and npm login didn't
One is an alias for the other. Maybe it was just running it twice.
One is an alias for the other. Maybe it was just running it twice.
Yes ... it could be it
You won't be able to login with your original npm username anymore if you converted your npm user to an npm organization. During the process of the conversion, npm should have asked you to create a new username. This is the new username that you will have to log in with.
star If you forgot the new username, you can find it on https://www.npmjs.com/ by logging in with your email.
star If you don't know the new username's password, use this form to create a new password.
This was my case, thank you!!