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