instal globaly package yarn code example
Example 1: npm install --global yarn
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]