Unable to authenticate agains Nexus hosted NPM Repository

i am running Nexus 2.14.20 and i am facing issues when trying to login a NPM Repository from CLI

0 info it worked if it ends with ok
1 verbose cli [ ‘/usr/bin/node’,
1 verbose cli ‘/usr/bin/npm’,
1 verbose cli ‘login’,
1 verbose cli ‘–registry=https://maven.xxx.de/nexus/content/repositories/OBA_NPM’ ]
2 info using npm@6.14.4
3 info using node@v10.19.0
4 verbose npm-session bc58a24e107b778d
5 verbose web login before first POST
6 http fetch POST 401 https://maven.xxx.de/nexus/content/repositories/OBA_NPM/-/v1/login 128ms
7 verbose web login not supported, trying couch
8 verbose adduser before first PUT { _id: ‘org.couchdb.user:xxx’,
8 verbose adduser name: ‘xxx’,
8 verbose adduser password: ‘XXXXX’,
8 verbose adduser email: ‘xxxxe’,
8 verbose adduser type: ‘user’,
8 verbose adduser roles: [],
8 verbose adduser date: ‘2021-11-18T09:36:39.391Z’ }
9 http fetch PUT 401 https://maven.cardev.de/nexus/content/repositories/OBA_NPM/-/user/org.couchdb.user:xxx 29ms
10 verbose stack Error: Unable to authenticate, need: BASIC realm=“Sonatype Nexus Repository Manager”
10 verbose stack at res.buffer.catch.then.body (/usr/share/npm/node_modules/npm-registry-fetch/check-response.js:94:17)
10 verbose stack at process._tickCallback (internal/process/next_tick.js:68:7)
11 verbose statusCode 401
12 verbose pkgid org.couchdb.user:xxx
13 verbose cwd /home/jg/workspace/mgmt/eksng-infra/oba-staging/fleet
14 verbose Linux 5.10.16.3-microsoft-standard-WSL2
15 verbose argv “/usr/bin/node” “/usr/bin/npm” “login” “–registry=https://maven.xxx.de/nexus/content/repositories/OBA_NPM”
16 verbose node v10.19.0
17 verbose npm v6.14.4
18 error code E401
19 error Unable to authenticate, need: BASIC realm=“Sonatype Nexus Repository Manager”
20 verbose exit [ 1, true ]

the nexus logs dont show anything regarding this. any hints how i could debug this?

Please see the Nexus 2 documentation for configuring authentication - Node Packaged Modules and npm Registries

Nexus 3 does have support for npm login.