Skip to main content

Command Palette

Search for a command to run...

How to use NVM for different node version on same machine ?

Updated
1 min read
How to use NVM for different node version on same machine ?
S

I love learning about technology and sharing that with others

There is lot of time when we need multiple node js version on our machine the reason can be we are having multiple projects and different project support different node version.

In that case we can use a tool called as nvm that will be used to install and use the different node version on the same machine.

This tutorial is for windows but I think same command will work on mac and Linux too.

Installation

  1. Navigate to the below mentioned link and install nvm

How to use NVM

Check that nvm is installed

nvm version

How to install a particular version

nvm install 8.11.1

or 

nvm install 14.15.1

How to use the installed node version.

nvm list

screenshot_48.png

above command will list all the node installed version

now use any installed version

nvm use 8.11.1

above command will use the mentioned version

now we can use the nvm list command to check which version is used

47 views

More from this blog

H

hashcodehub

271 posts

Consistent, Passionate and Organized :)