If you already have yarn in your machine, you just need to run
yarn set version stable
And yarn will upgrade to the latest stable version