Skip to content

Commit e4a5218

Browse files
committed
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: #3748 Credit: @wraithgar Close: #3748 Reviewed-by: @isaacs
1 parent 0320bd7 commit e4a5218

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

scripts/install.sh

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,8 +162,6 @@ cd "$TMP" \
162162
&& curl -qSsL -o npm.tgz "$url" \
163163
&& $tar -xzf npm.tgz \
164164
&& cd "$TMP"/package \
165-
&& echo "removing existing npm" \
166-
&& "$node" bin/npm-cli.js rm npm -gf --loglevel=silent \
167165
&& echo "installing npm@$t" \
168166
&& "$node" bin/npm-cli.js install -gf ../npm.tgz \
169167
&& cd "$BACK" \

0 commit comments

Comments
 (0)