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

nvm install is unintuitive #339

Open
Spenhouet opened this issue Feb 21, 2018 · 3 comments
Open

nvm install is unintuitive #339

Spenhouet opened this issue Feb 21, 2018 · 3 comments

Comments

@Spenhouet
Copy link

I installed nvm and than run nvm install latest. I then just couldn't use npm and it took me some time to figure out that in addition to install I need to run use.

If I look at nvm from a point of view where I'm only interested in keeping my node and npm installation uptodate, I only want to install nvm, run install latest and be done.

What I suggest is that nvm automatically runs use xy after install latest.

@b-dur
Copy link

b-dur commented Apr 6, 2018

Can definitely see the benefits. Changing this could have some consequences? Thinking of backward compatibility. Maybe a flag could be set? E.g. nvm install -u latest where -u would run the nvm use VERSION command after installation.

Another approach could be enhancing nvm use to install the version if the version isn't installed. Example, running nvm use latest would trigger NVM4W to check if a never version was available, install it, then use it.

@Svish
Copy link

Svish commented Apr 13, 2018

+1 for nvm use <version> with implied install if not already downloaded.

@loganmzz
Copy link

As some replacement for nvm, this should implements use command the same way and install if not present

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

4 participants