2014-02-26 15:43:12 +08:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
set -e
|
2014-04-20 07:48:14 +08:00
|
|
|
. ../../../nvm.sh
|
2014-02-26 15:43:12 +08:00
|
|
|
|
|
|
|
# Remove the stuff we're clobbering.
|
2014-04-20 14:39:28 +08:00
|
|
|
[ -e ../../../v0.9.7 ] && rm -R ../../../v0.9.7
|
|
|
|
[ -e ../../../v0.9.12 ] && rm -R ../../../v0.9.12
|
2014-02-26 15:43:12 +08:00
|
|
|
|
|
|
|
# Install from binary
|
2014-04-20 14:39:28 +08:00
|
|
|
nvm install 0.9.7
|
|
|
|
nvm install 0.9.12
|
2014-02-26 15:43:12 +08:00
|
|
|
|
|
|
|
# Check
|
2014-04-20 14:39:28 +08:00
|
|
|
[ -d ../../../v0.9.7 ]
|
|
|
|
[ -d ../../../v0.9.12 ]
|
2014-02-26 15:43:12 +08:00
|
|
|
|
|
|
|
# Use the first one
|
2014-04-20 14:39:28 +08:00
|
|
|
nvm use 0.9.7
|
2014-02-26 15:43:12 +08:00
|
|
|
|
|
|
|
# Use the latest one
|
2014-04-20 14:39:28 +08:00
|
|
|
nvm use 0.9
|
|
|
|
node --version | grep v0.9.12
|
2014-04-20 07:31:48 +08:00
|
|
|
|