Skip to content

Instantly share code, notes, and snippets.

@juliends
Created September 17, 2019 13:46
Show Gist options
  • Save juliends/e64c3bcd2d60cbae2f648958fb691e41 to your computer and use it in GitHub Desktop.
Save juliends/e64c3bcd2d60cbae2f648958fb691e41 to your computer and use it in GitHub Desktop.
move to NVM

Use NVM (node version manager) like we use rbenv for Ruby

First we will remove node and yarn

brew uninstall yarn
brew uninstall node  
brew uninstall node@8

Close and open terminal

brew cleanup

Check that you don't have any node version still running. You should get an error with this:

node -v

Install nvm

curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.34.0/install.sh | bash

Close and open terminal

command -v nvm

You should get nvm

If not you will have to add the NVM directory paths to your zshrc profile (I didn't had to do it 👋)

This shows you available versions of node... Please run it and laugh

nvm ls-remote

To run our repos you need

nvm install v8.16.1

Close and open terminal

node -v

should return v8.16.1

brew install yarn

You should be good to go. Remember to run yarn install on your favorite repo 🙌

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment