install requested version automatically if it isnt available
parent
6505c98461
commit
3d65d55b5a
3
nvm.sh
3
nvm.sh
|
@ -190,7 +190,8 @@ nvm()
|
||||||
fi
|
fi
|
||||||
VERSION=`nvm_version $2`
|
VERSION=`nvm_version $2`
|
||||||
if [ ! -d $NVM_DIR/$VERSION ]; then
|
if [ ! -d $NVM_DIR/$VERSION ]; then
|
||||||
echo "$VERSION version is not installed yet"
|
echo "$VERSION version is not installed yet... installing"
|
||||||
|
nvm install $VERSION
|
||||||
return;
|
return;
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue