Join GitHub today
feature request: allow npm registry to be specified #445
I notice that by default, NPM uses HTTP but HTTPS can also work, and does for registry.npmjs.org at least. My commit above will let you specify but is it worth doing something like forcing https, and if it fails switch to http, and only then constitute a failure? Seems less typing for something that should be arbitrary. These settings can also be set in your npmrc if you like, but for a pure build host it makes sense to have support in FPM itself.
This has been tested against an internal registry as well as an upstream mirror with some internal stuff, so it looks fairly solid to me (and trivial), but more testing welcome etc.