22 lines
288 B
Bash
22 lines
288 B
Bash
|
#!/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}"
|