nvm-windows icon indicating copy to clipboard operation
nvm-windows copied to clipboard

nvm install is unintuitive

Open Spenhouet opened this issue 7 years ago • 3 comments

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.

Spenhouet avatar Feb 21 '18 09:02 Spenhouet

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.

b-dur avatar Apr 06 '18 15:04 b-dur

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

Svish avatar Apr 13 '18 10:04 Svish

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

loganmzz avatar Jul 11 '23 06:07 loganmzz