how to download yarn to terminal code example Example 1: yarn: command not found npm install --global yarn Example 2: install yarn brew install yarn