alexanderGugel / ied

:package: Like npm, but faster - an alternative package manager for Node
http://alexandergugel.github.io/ied
MIT License
1.99k stars 53 forks source link

support private registry #104

Closed mdreizin closed 8 years ago

mdreizin commented 8 years ago

It would be nice to pass auth headers to support private registry:

ied install -r https://user:password@myregistry.npmjs.org

Currently I get:

throw new Error('Basic authentication must be done with auth option');
alexanderGugel commented 8 years ago

In order to define a custom registry, you can use the --registry flag or the IED_REGISTRY environment variable. This can also be used in order to identify using basic auth.

Alternatively you can set a bearer token via IED_GLOBAL_NODE_MODULES environment variable.

This should probably be better documented. Sorry about that.

mdreizin commented 8 years ago

@alexanderGugel Thanks a lot for the response ;)

alexanderGugel commented 8 years ago

Yeah, sorry for the delay.