Sanjib Kumar Koley
Sanjib Kumar Koley

Reputation: 81

Unauthorized Access in NPM Proxy repository in Nexus

I have created a proxy of NPM repository (https://registry.npmjs.org/) in my local machine.

But when I install the bower module of node.js using the proxy repository by the command: npm install bower

it's giving "unauthorized access"

Upvotes: 0

Views: 3085

Answers (3)

raven
raven

Reputation: 1144

In my case I had to activate npm Bearer Token Realm in nexus administration panel.

Upvotes: 0

Thomas Pham
Thomas Pham

Reputation: 11

You just have to add always-auth=true in your .npmrc ! Referring to the documentation

Upvotes: 0

Manfred Moser
Manfred Moser

Reputation: 29912

Depending on your Nexus setup you might have to configure security to be able to allow downloads. This is documented in the NPM chapter of the Nexus documentation.

Upvotes: 1

Related Questions