[Refactor] Create and use nvm_is_version_installed

This commit is contained in:
Jordan Harband
2016-04-27 17:11:16 -07:00
parent 1f336ffbfe
commit 09f86b0e6e
2 changed files with 14 additions and 15 deletions

View File

@@ -19,7 +19,7 @@ nvm ls | grep "$NVM_TEST_VERSION" || die "Failed to install node"
# Install global module as root
npm_path=$(which npm)
sudo "$npm_path" install jspm -g
sudo -n "$npm_path" install jspm -g || die 'either sudo failed, or `npm install jspm -g` failed`'
# Switch to another version so we can uninstall
nvm use 0.12.7