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