Search code examples
node.jsreactjsmacosyarnpkg

Issue Install Yarn globally on Mac


I am trying to install yarn globally using npm or brew

sudo install --globally yarn

or brew install yarn

but I still can't use it and I face this problem

enter image description here

Any clues what's the problem maybe solution?


Solution

  • Try running

    sudo chown -R $(whoami) ~/.config

    Then re-run the install yarn