Skip to content

Instantly share code, notes, and snippets.

@aeweda
Last active September 21, 2021 11:44
Show Gist options
  • Save aeweda/6828cedddee3ea268f03a6ff4551c45d to your computer and use it in GitHub Desktop.
Save aeweda/6828cedddee3ea268f03a6ff4551c45d to your computer and use it in GitHub Desktop.
nvm guide
  • run
wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.38.0/install.sh | bash
  • add the following to your .bashrc or .zshrc file in ~/
export NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || printf %s "${XDG_CONFIG_HOME}/nvm")"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
  • run
$ nvm install node
$ nvm use node
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment