current yarn version is yarn 3.0.0.
Tried changing to yarn 2.0.0 using yarn set version 2.0.0-rc.30
.
Even after that yarn version still remains at yarn 3.0.0.
Other alternatives I tried:
npm uninstall -g yarn
then npm install -g yarn
. Still yarn version remains at 3.0.0.
Update:
- managed to get yarn version to 2.0 after deleting yarnrc file from root directory.