Working with Multiple Node JS Versions On A Single Environment
Feb 18, 2022
Imaging that you are working on different Node JS projects, where each project requires a different Node JS version …
In those situations, the Node Version Manager (NVM) is a great tool to use, it makes life easier where you can install and manage multiple versions of Node JS on a single local environment, depending on the requirements of your project with minimal hassle.
In this guide, I’ll walk through:
- Installing NVM
- Downloading and managing Node JS versions
- Switching between different versions
Installing NVM:
For none windows users
For Windows users
Downloading and managing Node JS versions
Use the following command to download and install a new version:
nvm install xx.xx.x
Use the following command to list the available versions:
nvm ls
Use the following command to switch to any downloaded version
nvm use xx.xx.x