About Multiple Versions of Node

When working with different projects of different development phases, you might need multiple versions of Node on your computer. You can manage them using a handy tool nvm:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
# Install nvm
$ curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.3/install.sh | bash

# List available remote Node versions
$ nvm ls-remote

# Install a particular Node version
$ nvm install 18.14.0

# Link Node and npm to a particular Node version
$ nvm use 18.14.0

# List all local Node versions
$ nvm ls

Tips and Tricks Development Developer Experience JavaScript Node npm