mirror of
https://github.com/nvm-sh/nvm.git
synced 2025-05-17 09:31:51 +00:00
Merge b641675dbe
into edf36a8ea7
This commit is contained in:
commit
1adecc131f
10
nvm.sh
10
nvm.sh
@ -551,14 +551,10 @@ nvm() {
|
|||||||
nvm use $VERSION
|
nvm use $VERSION
|
||||||
if ! nvm_has "npm" ; then
|
if ! nvm_has "npm" ; then
|
||||||
echo "Installing npm..."
|
echo "Installing npm..."
|
||||||
if [ "`expr "$VERSION" : '\(^v0\.1\.\)'`" != '' ]; then
|
if [[ $VERSION == v0.1.* || $VERSION == v0.2.[0-2] ]]; then
|
||||||
echo "npm requires node v0.2.3 or higher" >&2
|
echo "npm requires node v0.2.3 or higher" >&2
|
||||||
elif [ "`expr "$VERSION" : '\(^v0\.2\.\)'`" != '' ]; then
|
elif [[ $VERSION == v0.2.* ]]; then
|
||||||
if [ "`expr "$VERSION" : '\(^v0\.2\.[0-2]$\)'`" != '' ]; then
|
nvm_download https://npmjs.org/install.sh -o - | clean=yes npm_install=0.2.19 sh
|
||||||
echo "npm requires node v0.2.3 or higher" >&2
|
|
||||||
else
|
|
||||||
nvm_download https://npmjs.org/install.sh -o - | clean=yes npm_install=0.2.19 sh
|
|
||||||
fi
|
|
||||||
else
|
else
|
||||||
nvm_download https://npmjs.org/install.sh -o - | clean=yes sh
|
nvm_download https://npmjs.org/install.sh -o - | clean=yes sh
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user