Merge pull request #1178 from lukechilds/installation-improvements
Installation improvements
commit
2ee8ec886f
10
install.sh
10
install.sh
|
@ -40,7 +40,7 @@ nvm_source() {
|
||||||
echo "$NVM_SOURCE_URL"
|
echo "$NVM_SOURCE_URL"
|
||||||
}
|
}
|
||||||
|
|
||||||
#
|
#
|
||||||
# Node.js version to install
|
# Node.js version to install
|
||||||
#
|
#
|
||||||
nvm_node_version() {
|
nvm_node_version() {
|
||||||
|
@ -103,7 +103,6 @@ nvm_install_node() {
|
||||||
NODE_VERSION="$(nvm_node_version)"
|
NODE_VERSION="$(nvm_node_version)"
|
||||||
|
|
||||||
if [ -z "$NODE_VERSION" ]; then
|
if [ -z "$NODE_VERSION" ]; then
|
||||||
echo "=> You can now install Node.js by running \`nvm install\`"
|
|
||||||
return 0
|
return 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -290,14 +289,17 @@ nvm_do_install() {
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Sourcing $PROFILE to take into account the new environment
|
# Source nvm
|
||||||
. "$NVM_PROFILE"
|
. "$NVM_DIR/nvm.sh"
|
||||||
|
|
||||||
nvm_check_global_modules
|
nvm_check_global_modules
|
||||||
|
|
||||||
nvm_install_node
|
nvm_install_node
|
||||||
|
|
||||||
nvm_reset
|
nvm_reset
|
||||||
|
|
||||||
|
echo "=> Close and reopen your terminal to start using nvm or run the following to use it now:"
|
||||||
|
printf "$SOURCE_STR"
|
||||||
}
|
}
|
||||||
|
|
||||||
#
|
#
|
||||||
|
|
Loading…
Reference in New Issue