how to upgrade library using yarn code example Example: how to upgrade package yarn global yarn global add <package>@latest