Reset npm user account

On September 11, 2012, in Uncategorized, by jonathancreamer

Today I was publishing stuff to npm and came across a situation in which I typed the wrong user account for my local mahcine’s npm.

I typed npm adduser jcreamer898 and then realized it was supposed to be “jcreamer”.

After a few minutes of digging I figured out that there’s a file in my home directory called .npmrc that gets created when you run adduser.

So I renamed that file, to old.npmrc then ran npm adduser jcreamer and voila!

 
  • http://ralphwhitbeck.com/ Ralph Whitbeck

    Don’t know how to spell your name now?

    • Anonymous

      You’d like to think that wouldn’t you…