Skip to content

Instantly share code, notes, and snippets.

@wilmoore
Last active April 29, 2024 22:41
Show Gist options
  • Select an option

  • Save wilmoore/846f7d35bd914d318143c7e71a01bb88 to your computer and use it in GitHub Desktop.

Select an option

Save wilmoore/846f7d35bd914d318143c7e71a01bb88 to your computer and use it in GitHub Desktop.
Software Engineering :: Programming :: Languages :: JavaScript :: Runtimes :: Node.js :: Version Managers :: NVM :: Install

Software Engineering :: Programming :: Languages :: JavaScript :: Runtimes :: Node.js :: Version Managers :: NVM :: Install

⪼ Made with 💜 by Polyglot.

Install

brew install nvm
(optional) shell initialization

add the following to your shell initialization files (i.e. .bashrc or .zshrc):

export NVM_DIR=$XDG_DATA_HOME/node
[[ -r $(brew --prefix nvm)/nvm.sh ]] && . $(brew --prefix nvm)/nvm.sh
[[ -r $NVM_DIR/bash_completion ]] && . $NVM_DIR/bash_completion
nvm use 0 >/dev/null
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment