nvm

Prerequisites

Install

Follow the install guide: GitHub — creationix/nvm

The installer failed to update my [ZSH profile](/workspace/mac-apps/zsh). This needed to be added manually to ~/.zshrc.

# -----------------------------------------------
# GravDept:
# Required for "nvm".
# -----------------------------------------------

export NVM_DIR=~/.nvm
source ~/.nvm/nvm.sh

Commands

nvm ls Show all installed Node versions
nvm install {x.x.x} Install Node x.x.x
nvm uninstall {x.x.x} Uninstall Node x.x.x
nvm use {x.x.x} Switch to Node x.x.x