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

Support windows like lts<NUMBER> for installing versions #3064

Closed
katcaola opened this issue Mar 20, 2023 · 1 comment
Closed

Support windows like lts<NUMBER> for installing versions #3064

katcaola opened this issue Mar 20, 2023 · 1 comment
Labels
feature requests I want a new feature in nvm! installing node Issues with installing node/io.js versions.

Comments

@katcaola
Copy link

I'm part of a project where some of the developers use unix (mac/linux) and some of the developers use windows.
I'm trying to script the setup of the repository for both sets of users.

I know that the nvm-windows project does not support .nvmrc so my question is, why does nvm-sh not understand lts version name strings the same way as npm-windows?

As a unix user, I can't use the lts18 string the way the windows users do because when I tell nvm for windows to nvm install lts18 or nvm use lts18, it fails. As a windows user, I also can't use the lts/hydrogen string the way the unix users do because when I tell nvm for windows to nvm install lts/hydrogen or nvm use lts/hydrogen, it fails.

It would be nice for feature parity purposes to be able to specify an lts the same way no matter what system you are on.

See relevant ticket in other project: coreybutler/nvm-windows#951

@ljharb ljharb added installing node Issues with installing node/io.js versions. feature requests I want a new feature in nvm! labels Mar 20, 2023
@ljharb
Copy link
Member

ljharb commented Mar 20, 2023

nvm-windows is a distinct project, and I don't know why it made the choices it did.

However, lts18 is categorically wrong, because LTS streams have names, and aren't actually restricted to specific version numbers.

nvm-windows is welcome to conform to the convention we've established (which follows node itself), but we won't be incorrectly enshrining version numbers into LTS release streams.

@ljharb ljharb closed this as not planned Won't fix, can't repro, duplicate, stale Mar 20, 2023
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! installing node Issues with installing node/io.js versions.
Projects
None yet
Development

No branches or pull requests

2 participants