mirror of
https://github.com/nvm-sh/nvm.git
synced 2025-09-08 20:17:36 +00:00
Organizing nvm install
tests better.
This commit is contained in:
24
test/slow/nvm install/install two versions and use the latest one
Executable file
24
test/slow/nvm install/install two versions and use the latest one
Executable file
@@ -0,0 +1,24 @@
|
||||
#!/bin/sh
|
||||
|
||||
set -e
|
||||
. ../../nvm.sh
|
||||
|
||||
# Remove the stuff we're clobbering.
|
||||
[ -e ../../v0.10.7 ] && rm -R ../../v0.10.7
|
||||
[ -e ../../v0.10.8 ] && rm -R ../../v0.10.8
|
||||
|
||||
# Install from binary
|
||||
nvm install 0.10.7
|
||||
nvm install 0.10.8
|
||||
|
||||
# Check
|
||||
[ -d ../../v0.10.7 ]
|
||||
[ -d ../../v0.10.8 ]
|
||||
|
||||
# Use the first one
|
||||
nvm use 0.10.7
|
||||
|
||||
# Use the latest one
|
||||
nvm use 0.10
|
||||
node --version | grep v0.10.8
|
||||
|
Reference in New Issue
Block a user