yarn update global code example
Example 1: yarn add global
yarn global <add/bin/list/remove/upgrade> [--prefix]
Example 2: how to upgrade package yarn global
yarn global add <package>@latest
yarn global <add/bin/list/remove/upgrade> [--prefix]
yarn global add <package>@latest