If you try to authenticate against a Nexus server for NPM, you can get some strange errors.
Here is how I tried logging in:
And this is what I get:
The recommended way to fix this is apparently to bypass authentication entirely, by setting up your .npmrc correctly. To find out where this is, type:
And the location will be visible.
From here, you can add lines to the file like so:
Note that both email addresses are required. The “_auth” param is admin:admin123 (a Nexus default). If you want to use something else, the nexus documentation recommends this: