Created
April 3, 2020 13:17
-
-
Save caiangums/b9ddd042772649bca8d55ff6ed94b2be to your computer and use it in GitHub Desktop.
Install Yarn with Node LTS in Mac using Homebrew
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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