yarn update global packages code example
Example 1: yarn update all packages
yarn upgrade --latest
yarn upgrade left-pad --latest
yarn upgrade left-pad grunt --latest --tilde
Example 2: how to upgrade package yarn global
yarn global add <package>@latest