Learn how to install Node.js using NVM (Node Version Manager) on Linux in a few simple steps.
curl -fsSL https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash
🔹 Replace v0.39.7 with the latest NVM version from the NVM GitHub.
v0.39.7
source ~/.bashrc # For Bash users source ~/.zshrc # For Zsh users
nvm --version
nvm ls-remote
nvm install --lts
nvm install 20.14.0
node -v npm -v
nvm use 20.14.0 # Use specific version nvm alias default 20.14.0 # Set it as default
nvm ls
nvm uninstall 20.14.0
npm install --global yarn
yarn -v