Skip to content

Instantly share code, notes, and snippets.

@panser
Created May 18, 2020 18:33
Show Gist options
  • Save panser/c6c62264467c05ee2ca4d458a259d43e to your computer and use it in GitHub Desktop.
Save panser/c6c62264467c05ee2ca4d458a259d43e to your computer and use it in GitHub Desktop.
brew uninstall nvm
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.3/install.sh | bash
vim ~/.zshrc
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
nvm install --lts node
nvm ls
nvm alias default 'lts/*'
node --version
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment