brew uninstall yarn code example
Example 1: install yarn
npm install -g yarn
Example 2: linux install yarn
curl -o- -L https://yarnpkg.com/install.sh | bash
npm install -g yarn
curl -o- -L https://yarnpkg.com/install.sh | bash