Installing Node Version Manager, Node and Yarn
Before you begin you will want to uninstall node and yarn if you already have it
brew uninstall yarn
brew uninstall node
and manually remove yarn with
rm -f /usr/local/bin/yarn
Now you can install NVM
brew install nvm
mkdir ~/.nvm
open your bash profile with your text editor. I use VS code so
code ~/.bash_profile
In your bash profile put
. "$(brew --prefix nvm)/nvm.sh"```
Now you can install node with NVM
```nvm install node```
and to install yarn
```npm install --global yarn```
follow the terminal directions if the download does not complete. This may include removing the file that it asks for and/or typing