What I Wanted to Do
Login and stay logged in with 2 accounts on https://registry.npmjs.org/, each for a different scope.
I want to see 2 _authToken entries in ~/.npmrc.
What Happened Instead
The second login replaced the general _authToken for the same registry, instead of adding one for the same registry, but a different scope.
> npm login --scope=@A Username: a Password: XXXX Email: (this IS public) personal@emailProvider.com Logged in as a to scope @A on https://registry.npmjs.org/.
There is an _authToken in ~/.npmrc
> npm login --scope=@B Username: b Password: YYYYY Email: (this IS public) email@example.com Logged in as a to scope @B on https://registry.npmjs.org/.
There is another _authToken in ~/.npmrc
The first token (
WWWW-WWWWW-WWWWW-WWWWW) is gone.
Rinse and repeat.