How should yarn be upgraded to the latest version?
yarn
I updated yarn on my Ubuntu by running the following command from my terminal
curl --compressed -o- -L https://yarnpkg.com/install.sh | bash
source:https://yarnpkg.com/lang/en/docs/cli/self-update
https://yarnpkg.com/lang/en/docs/cli/self-update