I am using Sonatype nexus as my repository where I have configured npm to have public and private repositories.
my .npmrc file has config
registry=<<private_repo_url>>/npm-group/
_auth=<<token>>
strict-ssl=false
always-auth=true
I get the following error when I install my private package on my local machine
npm ERR! code E401
npm ERR! Unable to authenticate, need: BASIC realm="Sonatype Nexus Repository Manager"
npm ERR! A complete log of this run can be found in:
Although I can publish my private packages to <<private_repo_url>>/npm-internal/
I am on windows laptop using git bash.
Sonatype Nexus version: 3.15.2
nodejs: v12.21.0
npm: 6.14.11
Any help would be appreciated.
Try to add npm Bearer Token Realm to your security configuration

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With