NixOS / npm2nix

Generate nix expressions to build npm packages
MIT License
57 stars 32 forks source link

Disable npm user config #32

Open pikajude opened 8 years ago

pikajude commented 8 years ago

A user's ~/.npmrc might have, for example, a different registry URL, which could end up generating the wrong package set. This behavior can be disabled manually with npm_config_userconfig=/dev/null npm2nix [...], but it'd be nicer not to need to remember.

cstrahan commented 8 years ago

We probably ought to default it to /dev/null, but provide a flag to choose the config. My team makes use of an internal registry of private packages, so we'd need a way to use configure registries and SSL options.

pikajude commented 8 years ago

I think everyone's team uses a registry of private packages, but on the other hand, I don't believe fetchurl can handle private registries yet...