globally add yarn code example
Example 1: install yarn globally
npm install --global yarn
Example 2: how to add packages globally in yarn
yarn global <add/bin/list/remove/upgrade> [--prefix]
npm install --global yarn
yarn global <add/bin/list/remove/upgrade> [--prefix]