2023 : curl https://raw.githubusercontent.com/creationix/nvm/master/install.sh | bash source ~/.profile nvm install 18.14.1 https://github.com/nvm-sh/nvm#installing-and-updating sudo apt update && sudo apt install curl -y curl https://raw.githubusercontent.com/creationix/nvm/master/install.sh | bash curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.2/install.sh | bash Debian based systems: source ~/.profile CentOS, Fedora and Redhat systems: source ~/.bashrc nvm ls-remote nvm install v16.18.0 nvm use v14.16.0