How should yarn be upgraded to the latest version?
yarn
yarn policies set-version
Use the above command in powershell to upgrade your current yarn version to Latest.It will download the latest yarn release