download yarn for mac code example
Example 1: install yarn
npm install -g yarn
Example 2: macos install yarn
brew install yarn
Example 3: yarn for mac
curl -o- -L https://yarnpkg.com/install.sh | bash
Example 4: setting up yarn on my mac
sudo npm install --global yarn
Example 5: install yarn
brew install yarn