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!