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

"n use" and "n bin" should work with partial version numbers #252

Closed
callumlocke opened this issue Mar 27, 2015 · 3 comments
Closed

"n use" and "n bin" should work with partial version numbers #252

callumlocke opened this issue Mar 27, 2015 · 3 comments

Comments

@callumlocke
Copy link

To install the latest 0.10.* version, you can just do $ n 0.10. You don't need to know the latest patch number.

But if you try to do $ n use 0.10 ... or n bin 0.10, it says Error: 0.10 is not installed, even if you have several 0.10.* versions installed.

It would be cool if n use and n bin could just figure out the highest installed matching version, and use that.

@ghost
Copy link

ghost commented Mar 30, 2015

I am looking into doing something like this. See #192.

I also think the way you can install without a wildcard need to be changed to be more in line with other node tools which want a wildcard..

@ghost ghost added the enhancement label Jul 22, 2015
@shadowspawn
Copy link
Collaborator

I wonder if is better to use the highest already installed version, or to look up the latest version number on mirror? The latest installed version would save a lookup and avoids failing if local is not latest, but the mirror version is more consistent with install, and how codenames (like lts) behave with bin and use.

Either would be a convenience.

@shadowspawn
Copy link
Collaborator

This issue has not had any activity in over six months. It isn't likely to get acted on due to this report. Although I do like the idea, and likely to do it at some point anyway!

Feel free to open a new issue if it comes up again, with new information and renewed interest.

Thank you for your contributions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants