No need to uninstall anything, just make sure you have the latest version of Yarn. For example, if you installed it with npm, first update Yarn, then set it to version 2, which is the Berry version, and that's it.
npm install -g yarn
yarn set version berry