NVM_NOUSE on install.sh to pass --no-use to nvm.sh

This commit is contained in:
Wes Todd 2019-12-05 20:02:49 -08:00
parent 73a513c389
commit b7fb5222ff

View File

@ -394,7 +394,11 @@ nvm_do_install() {
# Source nvm
# shellcheck source=/dev/null
\. "$(nvm_install_dir)/nvm.sh"
if [ -z "${NVM_NOUSE-}" ] ; then
\. "$(nvm_install_dir)/nvm.sh"
else
\. "$(nvm_install_dir)/nvm.sh" --no-use
fi
nvm_check_global_modules