bootstrap-rocky-9/install-nvm.sh
2024-12-14 02:34:51 +02:00

22 lines
288 B
Bash
Executable File

#!/usr/bin/env bash
VERSION="22.12.0"
wget https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.0/install.sh -O nvm-installer.sh
bash nvm-installer.sh
source ~/.bashrc
nvm --version
nvm ls-remote
nvm install "${VERSION}"
nvm ls
nvm use "${VERSION}"
nvm alias default "${VERSION}"