This page has the instructions to install the Node Version Manager (nvm). Having this tool is useful because some tools only works with NodeJsβ old versions.
Installation on Linux
Download and run the install script.
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash
Shell
Note: it uses curl to download the file, if you are using an Ubuntu distribution you can just run sudo apt install curl
Usage:
Install any NodeJs version using the install instruction.
nvm install v15
Shell
To select an specific version for your current session the use instruction is used.
nvm use v15
Shell