From e4a5218573583149af795982a39fa64a4116cdab Mon Sep 17 00:00:00 2001 From: Gar Date: Mon, 13 Sep 2021 11:34:24 -0700 Subject: [PATCH] fix(install.sh): don't remove old npm first The install script will gracefully fail if things don't work. This is especially important for versions of npm that won't work in your current node version. PR-URL: https://github.com/npm/cli/pull/3748 Credit: @wraithgar Close: #3748 Reviewed-by: @isaacs --- scripts/install.sh | 2 -- 1 file changed, 2 deletions(-) diff --git a/scripts/install.sh b/scripts/install.sh index 8c0ba3de72f12..cd6ea391cea5d 100755 --- a/scripts/install.sh +++ b/scripts/install.sh @@ -162,8 +162,6 @@ cd "$TMP" \ && curl -qSsL -o npm.tgz "$url" \ && $tar -xzf npm.tgz \ && cd "$TMP"/package \ - && echo "removing existing npm" \ - && "$node" bin/npm-cli.js rm npm -gf --loglevel=silent \ && echo "installing npm@$t" \ && "$node" bin/npm-cli.js install -gf ../npm.tgz \ && cd "$BACK" \