yarn downgrade package code example
Example 1: yarn update all dependencies to latest
yarn upgrade --latest
Example 2: update yarn
# Windows
choco upgrade yarn
# MacOS
brew upgrade yarn
Example 3: yarn add specific version
// for specific versions
yarn add [email protected]
Example 4: how to upgrade package yarn global
yarn global add <package>@latest