Describe the bug
Even after running npm install -g yarn@berry it still shows as version 1.21.1
I also tried running yarn set version but no luck.
Environment if relevant (please complete the following information):
I had the same issue before, please ensure you have not installed before with brew. If is that the case run
brew uninstall yarn
Then try again installing via npm, it did works for me.
yarn set version berry also doesn't work yet in yarn v1.21.x since it is an unreleased alias. You should be using yarn policies set-version berry
@juanpicado @DRoet, no luck even after installing from npm.

@juanpicado @DRoet after trying multiple times, I was able to get the right version of 1.22.4
Much appreciated.
What actually solve this ? 馃
I did which yarn then it showed the path then I removed the path and run brew install yarn which worked.