nvm
Prerequisites
Install
Follow the install guide: GitHub — creationix/nvm
The installer didn’t update my shell profile automatically. I needed to add this manually.
# -----------------------------------------------
# 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 |
nvm alias default {x.x.x} |
Save Node x.x.x as the default |