New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature request: allow npm registry to be specified #445

Closed
blalor opened this Issue May 17, 2013 · 2 comments

Comments

Projects
None yet
3 participants
@blalor

blalor commented May 17, 2013

We have an internal npm registry I'd like to be able to source packages from with fpm.

Looks like you do npm --registry $URL $PACKAGE

@lofidellity

This comment has been minimized.

Contributor

lofidellity commented Jun 17, 2013

You wouldn't happen to have a publicly reachable npm registry this could be tested against would you?

hatt added a commit to hatt/fpm that referenced this issue Aug 18, 2013

@hatt

This comment has been minimized.

Contributor

hatt commented Aug 18, 2013

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.

hatt added a commit to hatt/fpm that referenced this issue Aug 18, 2013

gerbercj pushed a commit to gerbercj/fpm that referenced this issue Feb 27, 2014

gerbercj pushed a commit to gerbercj/fpm that referenced this issue Feb 27, 2014

gerbercj pushed a commit to gerbercj/fpm that referenced this issue Mar 11, 2014

gerbercj pushed a commit to gerbercj/fpm that referenced this issue Mar 11, 2014

gerbercj pushed a commit to gerbercj/fpm that referenced this issue Apr 25, 2014

gerbercj pushed a commit to gerbercj/fpm that referenced this issue Apr 25, 2014

prof-milki pushed a commit to prof-milki/xpm that referenced this issue Dec 18, 2014

prof-milki pushed a commit to prof-milki/xpm that referenced this issue Dec 18, 2014

prof-milki pushed a commit to prof-milki/xpm that referenced this issue Dec 27, 2014

prof-milki pushed a commit to prof-milki/xpm that referenced this issue Dec 27, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment