

As a result, your software development using Node.js will be much more effortless and focused.Install Node.js - installer vs. It enables a concern-free installation and easy switching between different versions, saving time for what really matters.

All in all, Node Version Manager is a great tool for any Node.js developer. That should conclude the steps on how to use NVM (Node Version Manager) to run multiple versions of Node.js effortlessly. After that, you should navigate to the folder where you saved the testingnode.js file and run our program with the following command: $ node testingnode.jsĪnd your NVM usage is settled! Final words However, before we run it, we can define the Node.js version we want to use. Open your favorite text editor and put the following line of code: console.log(‘Node version in use: ‘ + process.version) So, let’s create a very simple program that will print out the current Node.js version we are using. List the Node.js versions Step #4: Use a specific Node.js version In order to list all the Node.js versions installed on your machine, simply run the command: $ nvm listĪnd as a result, your screen will return the result like this: Step #3: List the available Node.js versions for NVM We will go ahead and add version 4.2.1 with the command: $ nvm install 4.2.1 64Īnd you’re set to dig down. Moreover, you can install as many Node.js versions as you want.

To do this, you may have to close the command line and open it again. We will install version 0.12.7 of NVM for 64-bit Windows by running the command: $ nvm install 0.12.7 64Ī note to yourself: do not forget to start a new command-line session so the added Node.js to the path variable will take effect. So, you should install the latest or a specific version of Node.js. If you have not already installed Node.js on your machine, then it’s quite urgent. Then, all you have to do is running to the setup file Step #2: Install Node.js The installation is pretty easy because you can just follow the prompts of the Setup Wizard. We will install the latest release of this tool (v1.1.0). How to use NVM to run multiple versions of Note.js? Step #1: Install NVM for Windowsįirstly, we need to install NVM for Windows – which is the tool that will enable us to switch between different versions of Node.js. The following let’s go to find out how to use NVM. Moreover, in this tutorial, we will use Windows command-line tool, therefore, a little familiarity with the command line would be useful. So, let’s take a further step to the usage. Above, we may understand a little bit about this term.
