yarn exists in two versions: "classic" and "current"
"npm install yarn" gets you classic one, frozen in time
to get current version, need to run this set of commands
> npm install -g @yarnpkg/cli
> corepack enable
> yarn set version berry
> yarn --version
> yarn --version
Yarn @GitHub
yarnpkg/berry: 📦🐈 Active development trunk for Yarn ⚒ v 4.5.0