If trying to access a Nexus Repository Manager npm repositories with npm client versions 5.0.0 to 5.0.3, the requests will be blocked with 401 Unauthorized responses. If using an earlier version of npm client, authentication works.
The npm client versions 5.0.0 to 5.0.3 have a regression where the old basic authentication method is not supported. See the following npm bug:
The problem is not caused by any issue with Nexus Repository Manager.
Below are possible solutions to the above npm issue:
- upgrade to npm version 5.0.4 or greater
- or downgrade to an npm version earlier than 5.0.0
- and/or run
npm loginand use npm bearer token realm in Nexus 3.x .
- and/or possibly try this client based manual workaround specifying registry specific auth