As a developer who relies on NodeJS, we run into the issue of having different applications that need different version of Node to run. This is where NVM comes in. NVM (Node Version Manager) makes it easy to install multiple versions of Node.js on your machine and switch between them as needed.
Installing NVM on Mac
- Open your terminal.
- Run brew install nvm
Installing NVM on Windows
- Download and install the latest release of nvm-windows.
Using NVM
Command | What it does |
---|---|
nvm --help | Find all of the options available. |
nvm install [Version] | Installs the given version. |
nvm current | Shows the current version. |
nvm use [Version] | Switches to a specific version. |