Skip to content

Instantly share code, notes, and snippets.

@rafaelmaeuer
Last active July 27, 2022 14:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rafaelmaeuer/20777daad0853d838014765e336bb7fa to your computer and use it in GitHub Desktop.
Save rafaelmaeuer/20777daad0853d838014765e336bb7fa to your computer and use it in GitHub Desktop.
brew install nvm
mkdir ~/.nvm
# Add to .zshrc
export NVM_DIR="$HOME/.nvm"
[ -s "$(brew --prefix)/opt/nvm/nvm.sh" ] && . "$(brew --prefix)/opt/nvm/nvm.sh" # This loads nvm
[ -s "$(brew --prefix)/opt/nvm/etc/bash_completion.d/nvm" ] && . "$(brew --prefix)/opt/nvm/etc/bash_completion.d/nvm" # This loads nvm bash_completion
nvm install 18
# optional
nvm use 18
nvm list
# check
node -v
npm -v
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment