DEV Community

Cover image for Node Version Manager
Chinthaka Bandara
Chinthaka Bandara

Posted on • Updated on

Node Version Manager

Sometimes when you are working as a developer you will have to work on multiple projects or fix up a bug in a old project. All these projects will not have the same node.js version. Then you had to re-install node.js according to the project. This will be a hassle when you had to switch between node.js versions multiple times.

nvm is a version manager for node.js, designed to be installed per-user. nvm works on these platforms: unix, macOS, and windows WSL.

Getting Started

First we have to download and install nvm-windows.
https://github.com/coreybutler/nvm-windows/releases/tag/1.1.11

Usage

Check nvm version

nvm --version
Enter fullscreen mode Exit fullscreen mode

List locally installed versions

nvm ls
Enter fullscreen mode Exit fullscreen mode

Install specific version

nvm install v18.12.1
Enter fullscreen mode Exit fullscreen mode

Uninstall specific version

nvm uninstall 14.17.6
Enter fullscreen mode Exit fullscreen mode

Use specific version

nvm use 18.12.1
Enter fullscreen mode Exit fullscreen mode

Using these commands we can easily navigate across multiple node.js versions

Happy Coding 😉

Top comments (0)