yarn installm 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