Skip to content

Instantly share code, notes, and snippets.

@JacobWay
Last active March 25, 2017 05:08
Show Gist options
  • Save JacobWay/9b94dc343c78ef10cd589f4140ce664b to your computer and use it in GitHub Desktop.
Save JacobWay/9b94dc343c78ef10cd589f4140ce664b to your computer and use it in GitHub Desktop.
node version manager nvm

NVM

Installation

curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.1/install.sh | bash

The script clones the nvm repository to ~/.nvm and adds the source line to your profile (~/.bash_profile, ~/.zshrc, ~/.profile, or ~/.bashrc).

export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" # This loads nvm

Verfy installation

command -v nvm

Usage

  • nvm install node
  • nvm use node

Listing versions

nvm ls

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment