nvm
- Node.js Version Manager
- https://github.com/nvm-sh/nvm
Install
sh# for Windows Git Bash
touch ~/.bashrc
echo "test -f ~/.bashrc && . ~/.bashrc" >> ~/.bash_profile
sh# install
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.4/install.sh | bash
install node
shnvm install 20
set default version
shnvm alias default 20
list lts versions
shnvm ls-remote --lts