NVM allows to install multiple node versions and switch between them. In NVM the node is an alias for the latest version. Installation curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash Reboot the terminal Check if it is installed by command -v nvm and get the nvm output. Available Node versions nvm ls-remote Install Node nvm install node installs latest Node nvm install 14 installs 14th version nvm install 14.7.0 installs specific version First installed version becomes default Your current version node -v Installed versions nvm ls Switch version nvm use node use the installed version (not clear) nvm use 12 use 12th version nvm use 12.0.0 use exact version Default nvm alias default node nvm alias default 12 nvm alias default 12.22.12 Run Node node enter in current node terminal nvm run node same nvm run 12 specific version nvm run 12.0.0 same Path nvm which 18 get the path to the executable nvm which 18.4.0 same Uninstall node nvm uninstall 12 nvm uninstall 12.0.0 Remove nvm rm -rf "$NVM_DIR" Go to ~/.bashrc and remove following lines
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
[[ -r $NVM_DIR/bash_completion ]] && \. $NVM_DIR/bash_completion