Yarn upgrade package to latest version code example Example: how to upgrade package yarn global yarn global add <package>@latest