Skip to content
This repository

HTTP install script #84

Closed
adammw opened this Issue August 03, 2012 · 3 comments

4 participants

Adam Malcontenti-Wilson Isaac Z. Schlueter Sven benatkin
Adam Malcontenti-Wilson

Create an install script that can be served over HTTP that contains the CA cert and downloads and executes the HTTPS install script so that the standard curl http://npmjs.org/install.sh | sh works rather than sh: 1: moved:: not found

Isaac Z. Schlueter
Owner

Is this really still relevant? Don't people normally get npm along with node nowadays?

Sven

afaik if nodejs is installed using Homebrew then the answer to your question is "no".

brew search npm yields:

Homebrew does not provide npm because it is self-updating. To install it, first
  `brew install nodejs' and then:

  curl https://npmjs.org/install.sh | sh

As of this writing, the error notification at https://npmjs.org/install.sh reads in part:

Error: ENOENT, open '/home/node/npm-www/install.sh'  

What would it take to get the install.sh script working for Homebrew users as before ?

benatkin

Some people have scripts that are breaking unpleasantly because of this. How about putting a dummy script that says to use an alternate means of installing npm at that location? I haven't encountered this issue myself but I can understand the frustration. I don't particularly like my shell choking on a non-shell script. sh: line 1:<!DOCTYPE html>'`

It could even still have a 404 status code but have text/plain with a shell response body (of just echos and an exit code).

Isaac Z. Schlueter isaacs closed this in 7b77d25 August 11, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.