how to upgrade package yarn global

Shell
yarn global add <package>@latest
Source

Also in Shell: