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:
authorAlex Rodionov <p0deje@gmail.com>2013-08-08 05:58:44 +0400
committerisaacs <i@izs.me>2013-11-12 19:41:38 +0400
commit0ccb333281d2a4d7be697f3bdecbc685a3af3dd6 (patch)
tree85dce36fc48a86b75fe3476016a795ce6f6e45bc /scripts
parentd885f81ec67c9ac583a830f4dfa7ad8fb0e9c21f (diff)
#3759: do not install npm on node <= v0.5
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/install.sh6
1 files changed, 1 insertions, 5 deletions
diff --git a/scripts/install.sh b/scripts/install.sh
index a8e588d43..7a0a45f5d 100755
--- a/scripts/install.sh
+++ b/scripts/install.sh
@@ -152,15 +152,11 @@ if [ -z "$t" ]; then
# switch based on node version.
# note that we can only use strict sh-compatible patterns here.
case $node_version in
- 0.[0123].* | v0.[0123].*)
+ 0.[012345].* | v0.[012345].*)
echo "You are using an outdated and unsupported version of" >&2
echo "node ($node_version). Please update node and try again." >&2
exit 99
;;
- v0.[45].* | 0.[45].*)
- echo "install npm@1.0"
- t=1.0
- ;;
v0.[678].* | 0.[678].*)
echo "install npm@1.1"
t=1.1