yarn update version 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 update a specific package
yarn upgrade
yarn upgrade left-pad
yarn upgrade left-pad@^1.0.0
yarn upgrade left-pad grunt
yarn upgrade @angular
Example 4: yarn change version
yarn policies set-version 1.13.0