Node Version Manager on WSL
ini untuk ubuntu, wsl atau multipass dan sebangsanya, untuk windows disini 1
Requirement
1
2
3
which curl
# if not installed:
# sudo apt install curl
Download Installer to home
1
2
3
cd ~
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash
Reload .bashrc
1
source ~/.bashrc
Usefull Command
command | description |
---|---|
nvm | show manual page |
nvm list | show available list |
nvm ls_remote | less | show all available list |
nvm install lts | install last lts |
nvm -v | cek versi nvm |
node -v | cek versi node |
npm -v | cek versi npm |
nvm use lts | gunakan versi lts yg terinstall |
View on Microsoft Docs ↩