Nvm-windows: nvm install is unintuitive

Created on 21 Feb 2018  路  2Comments  路  Source: coreybutler/nvm-windows

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.

enhancement request

Most helpful comment

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

All 2 comments

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.

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

Was this page helpful?
0 / 5 - 0 ratings