Using NVM to have 2 different Node Version in your machine

10/9/2023 9:53:22 AM 10 min read

First install the NVM using this repo https://github.com/coreybutler/nvm-windows/releases

If you have already installed a version of Node in your PC, NVM can still control that installed version.


Check if the NVM is installed using any command tool.

 nvm --version


Then install a new node version that you want.

I will try installing Node v16.14


nvm install 16.14


Then use this command to display the current Node installations.

nvm list



Then you can choose any of the versions to use using


nvm use 16.14.2


You can always switch between.


Happy coding... :)


Comments


There are no comments