-
-
Notifications
You must be signed in to change notification settings - Fork 8.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Fix] nvm install
: Handle 'N/A' version instead of asking to install it
#1305
Conversation
221123f
to
514f662
Compare
hmmmm ... still trying to find out the problem here ... 😭 |
I have no idea about the failed of |
539bbd4
to
8bdd38c
Compare
8bdd38c
to
5d50c05
Compare
I'm not sure I understand the problem. If you |
It's very strange to ask for installing
|
I agree that a better error message is an improvement - but adding an |
@ljharb do you mean just print |
I think that's |
@ljharb what about this? if [ "${VERSION}" = 'N/A' ]; then
nvm_err "N/A: version \"${PROVIDED_VERSION} -> ${VERSION}\" is not yet installed."
nvm_err ""
nvm_err "You need to run \"nvm install ${PROVIDED_VERSION}\" to install it before using it."
return 3
# This nvm_ensure_version_installed call can be a performance bottleneck
# on shell startup. Perhaps we can optimize it away or make it faster.
elif ! nvm_ensure_version_installed "${VERSION}"; then
return $?
fi |
That seems much more reasonable :-) |
539bbd4
to
a676929
Compare
nvm install
: Handle 'N/A' version instead of asking to install it
a676929
to
fc7befc
Compare
fc7befc
to
8c03637
Compare
Below commands worked:
|
Fixes #1304.