coreybutler / nvm-windows

A node.js version management utility for Windows. Ironically written in Go.
MIT License
37.28k stars 3.32k forks source link

Make `nvm install` automatically use the installed version #1148

Closed jazelly closed 3 months ago

jazelly commented 3 months ago

Description of the new feature / enhancement

This will be consistent with the nvm-sh/nvm, which automatically uses the installed version. NVM4W does not do this automatically atm but gives a suggestion to nvm use x.x.x.

Scenario when this would be used?

For developers jumping across platforms, this is a subtle difference to notice/remember. One could do nvm install and get going with it, but didn't even realize it was pointing to the old version.

Supporting information

Output of nvm on WSL

Downloading and installing node v20.13.0...
Downloading https://nodejs.org/dist/v20.13.0/node-v20.13.0-linux-x64.tar.xz...
################################################################################################################# 100.0%
Computing checksum with sha256sum
Checksums matched!
Now using node v20.13.0 (npm v10.5.2)

Output of nvm on Windows

Downloading node.js version 20.13.0 (64-bit)... 
Extracting node and npm...
Complete
npm v10.5.2 installed successfully.

Installation complete. If you want to use this version, type

nvm use 20.13.0
coreybutler commented 3 months ago

This is already part of Runtime.