Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGar <gar+gh@danger.computer>2021-09-13 21:34:24 +0300
committerGar <gar+gh@danger.computer>2021-09-13 23:41:19 +0300
commite4a5218573583149af795982a39fa64a4116cdab (patch)
tree773e1275a0b88a4a700419eb35c82030cde336ea /scripts
parent0320bd77e2a38f48a88e377df4b122fd21043a83 (diff)
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
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/install.sh2
1 files changed, 0 insertions, 2 deletions
diff --git a/scripts/install.sh b/scripts/install.sh
index 8c0ba3de7..cd6ea391c 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" \