creationix/nvm — pull request #144 by logosity (2012-10-03 21:33:18+00:00)
Title: fix for npm install failure (corrects: Issue #91)

Updated the section of nvm.sh that installs npm for older versions of node. E.g.: nvm install v.0.4.10 fails with the error: "sh: Syntax error: newline unexpected" - this is because the curl command is encountering an HTML result (due to a 301 page moved) and trying to execute it as a shell script. The new url for the install script is via https instead of http. This patch changes the urls for both 2.x npm installs and others to use https.