-
Notifications
You must be signed in to change notification settings - Fork 3k
Can't login using 2.1.7 #6641
Comments
Just to confirm: you couldn't login (after upgrading to 2.1.7), but
Then you were able to log in? |
exactly! Well, I couldn't login before the upgrade either, but because of the error shown in #6530 |
FYI |
I also experienced this issue with npm 2.1.6 and 2.1.7 Following the suggestion of the OP and removing the hash from my npmrc and "Changing" (just re-entered it) on npmjs.org solved the issue for me. In case it's relevant I've had an npm account since pretty early on (node v0.4 days) so maybe it's only affecting older accounts? |
The relevant line in the debug log seems to be:
I think the fix is to upgrade npm and login again:
And things will be fine. Note that you can hit Does anybody still get the error after upgrading to >= 2.1.7 and clearing the password entry out of .npmrc? If so, please speak up, otherwise I will recommend this case be closed. |
Me. I had to "change" my password on npmjs.org before it worked. The removal of the hash in .npmrc didn't work. |
Ah, OK. So that sounds like a change on the back end was needed. I'm guessing (since I haven't looked at node-registry-couchapp) that support for the password_sha auth was recently removed. Then this would bite everyone who:
(fixed error) |
Can this issue now be closed? I have suggested this protocol for a number of people with login problems:
and it generally seems to work. We are trying to clean up older npm issues, so if we don't hear back from you within a week, we will close this issue. (Don't worry -- you can always come back again and open a new issue!) Thanks! |
That is indeed a good protocol, and one of these days we will have worked all the old passwords out of the system. Closing as resolved. |
This just happened for me :-( I fixed it by changing my password to the exact same value. Could this not just be automatically done, for everybody, upon any successful login to npmjs.com? |
@ljharb I think that's probably a question for the registry team, and I imagine their answer is that all of the current login code is very close to being replaced, in which case everybody's going to have to log back in anyway (because we're all going to be using bearer token auth in the glorious future). I agree that this is a mystifying and frustrating error to encounter in practice, especially when you're running into it in the context of an erroneous 502 error. |
update: i had to kickstart the upgrade of NPM - once done properly I no longer had issues. So this is not an issue after all : end update |
@ReinsBrain , could you please open a new issue at https://github.com/npm/npm/issues so we can work on fixing the problem you're seeing without sending email to all the people above? |
username: theblacksmith
After upgrading to 2.1.7 I was getting the following error. But it was solved after updating my password on the site and deleting ~/.npmrc
The text was updated successfully, but these errors were encountered: