mac yarn command not found code example Example 1: yarn: command not found npm install --global yarn Example 2: macos install yarn brew install yarn