- Update the package repository
- Install NVM link
# using curl
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.0/install.sh | bash
# or
# using wget
wget -q0- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.0/install.sh | bash
- Restart the terminal
- Install bass using oh-my-fish link
- Add fish function to
~/.config/fish/functions/nvm.fish to load nvm
function nvm
bass source ~/.nvm/nvm.sh --no-use ';' nvm $argv
end
- Chcek and verify nvm version
- Check running node version
- Check for newly available versions
- Install a node version
nvm install [version.number] # nvm install 16.13.1
- Select a specific version
nvm use [version.number] # nvm use 16.13.1