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:
-rwxr-xr-xscripts/install.sh4
1 files changed, 1 insertions, 3 deletions
diff --git a/scripts/install.sh b/scripts/install.sh
index 0df9102cb..65db80170 100755
--- a/scripts/install.sh
+++ b/scripts/install.sh
@@ -85,9 +85,7 @@ cd "$TMP" \
echo "Please upgrade node before continuing."
exit $ret
fi) \
- && (if ! [ "$make" = "NOMAKE" ]; then
- $make clean install
- else
+ && (if [ "$make" = "NOMAKE" ] || ! $make clean install; then
$node cli.js cache clean
$node cli.js rm npm --force --global
$node cli.js install . --force --global