how to yarn mac code example Example 1: macos install yarn brew install yarn Example 2: yarn for mac curl -o- -L https://yarnpkg.com/install.sh | bash