Moving the N/A check earlier in `nvm install`
parent
6cac732141
commit
17df0b9912
10
nvm.sh
10
nvm.sh
|
@ -963,6 +963,11 @@ nvm() {
|
|||
;;
|
||||
esac
|
||||
|
||||
if [ "_$VERSION" = "_N/A" ]; then
|
||||
echo "Version '$provided_version' not found - try \`nvm ls-remote\` to browse available versions." >&2
|
||||
return 3
|
||||
fi
|
||||
|
||||
ADDITIONAL_PARAMETERS=''
|
||||
local PROVIDED_REINSTALL_PACKAGES_FROM
|
||||
local REINSTALL_PACKAGES_FROM
|
||||
|
@ -1004,11 +1009,6 @@ nvm() {
|
|||
return $?
|
||||
fi
|
||||
|
||||
if [ "_$VERSION" = "_N/A" ]; then
|
||||
echo "Version '$provided_version' not found - try \`nvm ls-remote\` to browse available versions." >&2
|
||||
return 3
|
||||
fi
|
||||
|
||||
if [ "_$NVM_OS" = "_freebsd" ]; then
|
||||
# node.js and io.js do not have a FreeBSD binary
|
||||
nobinary=1
|
||||
|
|
Loading…
Reference in New Issue