From 44d577611018d00e2727592099bc25179fd52e72 Mon Sep 17 00:00:00 2001 From: Hiro Asari Date: Sun, 12 Oct 2014 12:23:52 -0400 Subject: [PATCH] Fix npm update code https://npmjs.org/install.sh redirects to https://www.npmjs.org/install.sh so this code would fail if it ever npm was absent when we get here. --- nvm.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nvm.sh b/nvm.sh index 515a6f9..7d53ea7 100644 --- a/nvm.sh +++ b/nvm.sh @@ -675,10 +675,10 @@ nvm() { if nvm_version_greater 0.2.3 "$VERSION"; then echo "npm requires node v0.2.3 or higher" >&2 else - nvm_download https://npmjs.org/install.sh -o - | clean=yes npm_install=0.2.19 sh + nvm_download -L https://npmjs.org/install.sh -o - | clean=yes npm_install=0.2.19 sh fi else - nvm_download https://npmjs.org/install.sh -o - | clean=yes sh + nvm_download -L https://npmjs.org/install.sh -o - | clean=yes sh fi fi else