You can clone with
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
curl http://npmjs.org/install.sh | sh
sh: 1: moved:: not found
Is this really still relevant? Don't people normally get npm along with node nowadays?
afaik if nodejs is installed using Homebrew then the answer to your question is "no".
brew search npm yields:
brew search npm
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 ?
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>'`
sh: line 1:
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).
Move favicon.ico and install.sh to top-level