Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

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


  1. NVM for Windows

  2. nvm is not compatible with the “PREFIX” environment variable: currently set to “/usr/local”