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

Alias for latest lts/non-lts/major #402

Closed
7 of 29 tasks
thany opened this issue Oct 24, 2018 · 4 comments
Closed
7 of 29 tasks

Alias for latest lts/non-lts/major #402

thany opened this issue Oct 24, 2018 · 4 comments

Comments

@thany
Copy link

thany commented Oct 24, 2018

My Environment

  • Windows 7 or below (not truly supported due to EOL - see wiki for details)

  • Windows 8

  • Windows 8.1

  • Windows 10

  • Windows 10 IoT Core

  • Windows Server 2012

  • Windows Server 2012 R2

  • Windows Server 2016

  • My Windows installation is non-English.

I'm using NVM4W version:

  • 1.1.7
  • 1.1.6
  • 1.1.5
  • 1.1.4
  • 1.1.3
  • 1.1.2
  • 1.1.1
  • Older
  • OTHER (Please Specify)

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.
  • verified I'm using an account with administrative privileges.
  • searched the issues (open and closed) to make sure this isn't a duplicate.
  • made sure this isn't a question about how to use NVM for Windows, since gitter is used for questions and comments.

My issue is related to (check only those which apply):

  • settings.txt
  • proxy support (Have you tried version 1.1.0+?)
  • 32 or 64 bit support (Have you tried version 1.1.3+?)
  • Character escaping (Have you tried version 1.1.6+?)
  • A standard shell environment (terminal/powershell)
  • A non-standard shell environment (Cmder, Hyper, Cygwin, git)

Expected Behavior

I tried to install with nvm install, nvm install node and nvm install latest. I would expect one of these to install the latest version of Node.js. I would also expect nvm install 10 to install the latest 10.x.

Fixing nvm install node would be in line with nvm even though it is a different thing - it is what mac/linux people use in place of nvm4w and having (mostly) identical commands will reduce confusion.

Actual Behavior

When I run nvm install node, it says:

node.0.0
Node.js vnode.0.0 is only available in 32-bit.

When I run nvm install 10 it installs 10.0.0, which might not what one woud expect.

Steps to reproduce the problem:

Try the commands mentioned.

@Netgator
Copy link

I believe that I have the same request/issue/feature... I would really like to use nvm in my nightly build process which would download and install the latest node version as well as USE IT so based on my manual process the first command:
"nvm install latest"
seems to work fine currently getting node version 11.2.0...

However, in order for an eventual automated script to use the latest version it would be really handy to be able to use the command:

"nvm use latest"

It currently appears that nvm simply adds .0.0 to the "latest" parameter and attempts to use an invalid version number of "latest.0.0"...

Can the "nvm use" command be updated to allow for the keyword "latest" instead of a specific version number - to use the highest version currently available on the machine?

@vinils
Copy link

vinils commented Aug 6, 2019

nvm use $(nvm ls) works in powershell

@tats-u
Copy link
Contributor

tats-u commented Mar 24, 2020

I have already created the following PRs:

However, they seem not to be merged.

@thany
Copy link
Author

thany commented Mar 24, 2020

nvm use $(nvm ls) works in powershell

Maybe so, but it's important to keep the syntax identical to the original nvm, when working together in one project with folks on a Mac or Linux. That way, there can be no confusion as to what commands to use on nvm.

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

No branches or pull requests

4 participants