a blog for those who code

Tuesday 7 February 2017

Run multiple versions of Node.js in a System

In this post we will be discussing about how to run multiple version of Node.js in a System. There might be situations where you need to install multiple versions of Node.js for example if you are working on multiple projects and they have different requirements and they need different versions.

On Mac and Linux 

For Mac and Linux nothing is better than nvm (Node Version Manager). For working with nvm you need to install it first which can be installed using the NVM Script. Next is to install node (nvm install node) and use it in any new shell (nvm use node or nvm run node --version).

On Windows

NVM does not have support for Windows. For working on windows you need to use nvm-windows or nodeist. Note that nvm-windows is not a fork of nvm and its completely different than nvm.


To start working with nvm-windows need to download the latest version of the software from GitHub. It comes with an installer and uninstaller. To start working with multiple versions of node.js at first you need to uninstall any existing versions of node.js along with deleting existing installation directories. You also have to delete existing npm install location so that nvm installation will be done correctly.

nvm-windows is a command line tool which will list out all the node.js installation by the command nvm list. It will display the current running version of NVM for windows by using the command nvm version.


Its a natural node.js and npm version manager for windows. Just like nvm-windows it can also be installed using the installer. Just by running the command nodist it will lists all the installed versions and it also highlight the active ones.

Version Manager is a great tool for any Node.js developer because it enables you to switch between different versions, saving time for what really matters. Please Like and Share CodingDefined.com blog, if you find it interesting and helpful.

No comments:

Post a Comment