yarn upgrade package.json versions code example
Example 1: yarn update all dependencies to latest
yarn upgrade --latest
Example 2: yarn add specific version
// for specific versions
yarn add [email protected]
yarn upgrade --latest
// for specific versions
yarn add [email protected]