npm token list giving error

I was probably going in wrong direction. I did login in cli using

npm login

and after that I was able to do npm token list and other related commands easily, without any issue.


I had the same problem, but my issue wasn't solved until I deleted the .npmrc file in my current dir.

Even when I tried to get my user after a succesful npm login I got this:

$ npm whoami --verbode
npm ERR! code E401
npm verb stack Error: Registry returned 401 for GET on http://registry.npmjs.org/-/whoami

More info at: https://github.com/npm/npm/issues/16448

Tags:

Node.Js

Npm