Because of network problems, use brew install yarn always fail. So the record about off-line installation
As shown below, to download.
1. Decompression
2. Configure Environment Variables
touch ~/.bash_profile
open ~/.bash_profile
export PATH="$PATH:`yarn global bin`"
Try to re-launch the terminal like