instal yarn global mac homebrrew code example Example 1: macos install yarn brew install yarn Example 2: install yarn brew install yarn