how to globally install package using yarn code example
Example 1: install yarn globally
npm install --global yarn
Example 2: how to add packages globally in yarn
yarn global [--prefix]
npm install --global yarn
yarn global [--prefix]