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

Suggestion: wildcard major version to latest X.y..z #214

Closed
4 tasks
tomByrer opened this issue Oct 24, 2016 · 5 comments
Closed
4 tasks

Suggestion: wildcard major version to latest X.y..z #214

tomByrer opened this issue Oct 24, 2016 · 5 comments

Comments

@tomByrer
Copy link

tomByrer commented Oct 24, 2016

If this is a question about how to use NVM4W, please use stackoverflow instead.

If this is an issue regarding antivirus, make sure you search the existing issues first.

My Environment

  • Windows 10

I have already...

  • read the README to be aware of npm gotchas & antivirus issues.
  • reviewed the wiki to make sure my issue hasn't already been resolved.
  • searched the issues (open and closed) to make sure this isn't a duplicate.

Expected Behavior

nvm install 6 uses the latest 6.. version, in this case v6.9.1
Typical behavior of nvm Bash script

Actual Behavior

nvm installed 6.0.0 (assumed null = 0)

Would be handy to when having to install the latest versions in a specific major version without having to visit the NodeJS website. Changing this behavior does have a slight potential of confusing current users, but is currently confusing of Mac devs using this on Windows. I'd say the added benefit latest security updates & bug fixes trumps.
Same suggestion goes for nvm use, etc.

If 'no, won't add', I'd like to document the current behavior.

@coreybutler
Copy link
Owner

This has been requested before and I do think it makes sense to have the absolute latest version downloaded/used. I'm still pretty pressed for time at the moment, but consider this on my to-do list..... I would gladly accept a PR if someone wants this before I get around to it.

@kylewuolle
Copy link
Contributor

I submitted a PR for this #222

@navossoc
Copy link

navossoc commented Apr 8, 2017

@kylewuolle That is great, but I think you should go further and implement the same behavior on semver.

nvm install 6 = 6.10.2
nvm install 6.9 = 6.9.5
nvm install 6.9.2 = 6.9.2

For reference:
https://nodejs.org/en/download/releases/

@coreybutler If someone sent a PR with that changes, are you going to support it?

@coreybutler coreybutler modified the milestone: 2.0.0 Jul 15, 2017
@coreybutler coreybutler added this to Planned in 2.0.0 Jul 15, 2017
@coreybutler coreybutler moved this from Planned to Backlog in 2.0.0 Jul 15, 2017
@Sieabah
Copy link

Sieabah commented Oct 13, 2017

I've made a PR finishing the steps so install and use both have sane versions. #311

@navossoc
@coreybutler

@coreybutler
Copy link
Owner

Closing. This was added in v1.1.8.

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

No branches or pull requests

6 participants
@Sieabah @coreybutler @tomByrer @navossoc @kylewuolle and others