Installation:
1) execute:
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.2/install.sh | bash
2) close the console and open a new one, execute:
command -v nvm
The result should be: nvm
Use:
1) To list every version of nodejs execute:
nvm ls
2) To install a new version of nodejs, for example version v12.0.0, execute:
nvm install 12.0
3) To use an installed version:
nvm use 12.0.0