nvm

install

# Arch
sudo pacman -S nvm

1

# Windows 10
scoop install nvm
# Termux
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.3/install.sh | bash

usage

# Arch
nvm install --lts
nvm use --lts
# Windows 10
nvm list available
nvm install lts
nvm use lts
# nvm install iron
# nvm install hydrogen

2

# Termux
PREFIX= nvm install stable
PREFIX= nvm use --delete-prefix stable

config

vim ~/.nvm/settings.txt
node_mirror: https://npmmirror.com/mirrors/node/

reference

cross-reference

mark

cache