Skip to content

Instantly share code, notes, and snippets.

@bill-transue
Created August 3, 2018 23:15
Show Gist options
  • Save bill-transue/9c4e52b049190a43c81e4c98fdd874a5 to your computer and use it in GitHub Desktop.
Save bill-transue/9c4e52b049190a43c81e4c98fdd874a5 to your computer and use it in GitHub Desktop.

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment