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

Should "nvm install" persist a node version across terminal sessions? #2000

Closed
ericandrewlewis opened this issue Feb 7, 2019 · 3 comments
Closed
Labels
informational pull request wanted This is a great way to contribute! Help us out :-D

Comments

@ericandrewlewis
Copy link
Contributor

This is a general question: Should nvm install --lts (or whatever version) persist the npm and node versions across terminal sessions?

@ljharb
Copy link
Member

ljharb commented Feb 7, 2019

Nope - nvm is per-shell. New shells will start with the default version auto-used; the first version installed becomes the default. You can nvm unalias default or nvm alias default whatever to set a new default.

@ericandrewlewis
Copy link
Contributor Author

Thanks for the context! Would it be useful to note this in the readme around the nvm install documentation? I'm glad to try putting together a PR.

@ljharb
Copy link
Member

ljharb commented Feb 7, 2019

Sure, maybe under https://github.com/creationix/nvm#usage ?

ericandrewlewis added a commit to ericandrewlewis/nvm that referenced this issue Feb 22, 2019
@ljharb ljharb added informational pull request wanted This is a great way to contribute! Help us out :-D labels Feb 22, 2019
ljharb pushed a commit to ericandrewlewis/nvm that referenced this issue Feb 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
informational pull request wanted This is a great way to contribute! Help us out :-D
Projects
None yet
Development

No branches or pull requests

2 participants