Home Node Version Manager
Post
Cancel

Node Version Manager

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

commanddescription
nvmshow manual page
nvm listshow available list
nvm ls_remote | lessshow all available list
nvm install ltsinstall last lts
nvm -vcek versi nvm
node -vcek versi node
npm -vcek versi npm
nvm use ltsgunakan versi lts yg terinstall

This post is licensed under CC BY 4.0 by the author.