-
Install curl and git
sudo apt install curl git
-
Clone asdf
git clone https://github.com/asdf-vm/asdf.git ~/.asdf --branch v0.10.2 -
Add into
.bashrc. $HOME/.asdf/asdf.sh . $HOME/.asdf/completions/asdf.bash
-
Install node plugin on asdf
asdf plugin add nodejs https://github.com/asdf-vm/asdf-nodejs.git asdf install nodejs 20.9.0 # change version here -
List plugins added
asdf plugin list
-
List Nodejs Last Versions
asdf nodejs update-nodebuild asdf nodejs resolve lts --latest-installed
-
References: