update node to latest version yarn command code example
Example 1: update yarn
# Windows
choco upgrade yarn
# MacOS
brew upgrade yarn
Example 2: yarn latest version
choco install yarn
# Windows
choco upgrade yarn
# MacOS
brew upgrade yarn
choco install yarn