How should yarn be upgraded to the latest version?
yarn
npm install --global yarn npm upgrade --global yarn
This should work.