Skip to content

Commit

Permalink
Merge pull request #1178 from lukechilds/installation-improvements
Browse files Browse the repository at this point in the history
Installation improvements
  • Loading branch information
ljharb authored Jul 28, 2016
2 parents 8a199e0 + 978f7b4 commit 2ee8ec8
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ nvm_source() {
echo "$NVM_SOURCE_URL"
}

#
#
# Node.js version to install
#
nvm_node_version() {
Expand Down Expand Up @@ -103,7 +103,6 @@ nvm_install_node() {
NODE_VERSION="$(nvm_node_version)"

if [ -z "$NODE_VERSION" ]; then
echo "=> You can now install Node.js by running \`nvm install\`"
return 0
fi

Expand Down Expand Up @@ -290,14 +289,17 @@ nvm_do_install() {
fi
fi

# Sourcing $PROFILE to take into account the new environment
. "$NVM_PROFILE"
# Source nvm
. "$NVM_DIR/nvm.sh"

nvm_check_global_modules

nvm_install_node

nvm_reset

echo "=> Close and reopen your terminal to start using nvm or run the following to use it now:"
printf "$SOURCE_STR"
}

#
Expand Down

0 comments on commit 2ee8ec8

Please sign in to comment.