how to upgrade yarn code example
Example 1: update yarn
# Windows
choco upgrade yarn
# MacOS
brew upgrade yarn
Example 2: upgrade node via yarn
$ npm i -g yarn
$ yarn global add yarn
$ npm rm -g yarn
# Windows
choco upgrade yarn
# MacOS
brew upgrade yarn
$ npm i -g yarn
$ yarn global add yarn
$ npm rm -g yarn