2015-01-19 10:45:02 +08:00
|
|
|
#!/bin/sh
|
|
|
|
|
2016-11-04 13:15:18 +08:00
|
|
|
\. ../../../nvm.sh
|
2015-01-19 10:45:02 +08:00
|
|
|
|
2016-06-27 06:52:26 +08:00
|
|
|
mkdir -p "${NVM_DIR}/.nvm_use_bak"
|
|
|
|
if [ -d "${NVM_DIR}/v*" ]; then
|
|
|
|
mv "${NVM_DIR}/v*" "${NVM_DIR}/.nvm_use_bak/"
|
2015-01-19 10:45:02 +08:00
|
|
|
fi
|
2016-07-03 23:37:03 +08:00
|
|
|
mkdir -p "${NVM_DIR}/.nvm_use_lts_alias_bak"
|
|
|
|
if [ -d "${NVM_DIR}/alias/lts" ]; then
|
|
|
|
mv "${NVM_DIR}/alias/lts/*" "${NVM_DIR}/.nvm_use_lts_alias_bak/"
|
|
|
|
fi
|
2015-01-19 10:45:02 +08:00
|
|
|
|
|
|
|
for VERSION in "0.8.7" "0.9.1" "0.10.1" "0.11.1"; do
|
|
|
|
nvm install "v$VERSION"
|
|
|
|
done
|
|
|
|
|
|
|
|
for VERSION in "1.0.0" "1.0.1"; do
|
|
|
|
nvm install "iojs-v$VERSION"
|
|
|
|
done
|
2016-07-03 23:37:03 +08:00
|
|
|
|
|
|
|
nvm_make_alias lts/testing 0.10.1
|
|
|
|
nvm_make_alias 'lts/*' lts/testing
|