Skip to content
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

Bad error message #675

Closed
mcandre opened this issue Feb 21, 2015 · 1 comment
Closed

Bad error message #675

mcandre opened this issue Feb 21, 2015 · 1 comment
Assignees
Labels
feature requests I want a new feature in nvm!

Comments

@mcandre
Copy link

mcandre commented Feb 21, 2015

When nvm is instructed to use a version of Node that is not currently installed, it should print a better error message.

$ nvm ls
->      v0.12.0
stable -> 0.12 (-> v0.12.0) (default)

$ nvm use v0.10.0
N/A version is not installed yet

Should be:

v0.0.10 is not installed yet

I'm using nvm v0.23.3 on Mac OS X 10.10.2 Yosemite.

@ljharb ljharb added the feature requests I want a new feature in nvm! label Feb 21, 2015
@ljharb
Copy link
Member

ljharb commented Feb 22, 2015

This isn't quite as simple as you suspect - because you can do nvm use foo where foo is an alias, or nvm use 0.10 which means that if none is installed, nvm doesn't know which patch version you mean without contacting the internet (which nvm use shouldn't do).

However, I can definitely make the output a bit more helpful.

@ljharb ljharb self-assigned this Feb 22, 2015
@ljharb ljharb closed this as completed in fb85361 Feb 22, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature requests I want a new feature in nvm!
Projects
None yet
Development

No branches or pull requests

2 participants