npm-cache-proxy icon indicating copy to clipboard operation
npm-cache-proxy copied to clipboard

npmrc/auth

Open travis-icorein opened this issue 3 years ago • 2 comments

Is there a way to provide/map in an npmrc file for our upstream private repositories when using the Docker route? The functionality addressed by npm login and the npmrc auth settings. I see I am able to set my default UPSTREAM_ADDRESS via the env variable (I am using docker compose, to stand up the redis instance too). Ideally I could supply the username, _password, and _auth parameters per specified registry (avoiding the default npmjs registry altogether).

travis-icorein avatar Feb 20 '22 05:02 travis-icorein

Great question..

rosscdh avatar Mar 15 '23 20:03 rosscdh

I've added support for passing an auth token to the upstream (private) registry in this fork: https://github.com/wonderlic/npm-cache-proxy Seems to work fine with Verdaccio on the other end.

serisman avatar Aug 10 '24 02:08 serisman