Last active
July 27, 2022 14:32
-
-
Save rafaelmaeuer/20777daad0853d838014765e336bb7fa to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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