Skip to content

Instantly share code, notes, and snippets.

@caiangums
Created April 3, 2020 13:17
Show Gist options
  • Save caiangums/b9ddd042772649bca8d55ff6ed94b2be to your computer and use it in GitHub Desktop.
Save caiangums/b9ddd042772649bca8d55ff6ed94b2be to your computer and use it in GitHub Desktop.
Install Yarn with Node LTS in Mac using Homebrew
# remove yarn and node installed versions
brew uninstall yarn
brew uninstall node
# install node LTS (last LTS version is 12)
brew install node@12
# create symlink for other packages knowing you already have node installed
ln -s /usr/local/opt/node@12 /usr/local/opt/node
# install yarn without dependencies
brew install yarn --ignore-dependencies
# check yarn and node versions
echo "Yarn Version: $(yarn --version)"
echo "Node Version: $(node --version)"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment