how to keep yarn and npm global updated code example Example: how to upgrade package yarn global yarn global add <package>@latest