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 🙌