Project version of Yarn conflicts with global Yarn version

Hi,

I’m getting an error when I try to run yarn install in a project.

error This project's package.json defines "packageManager": "yarn@4.5.1". However the current global version of Yarn is 1.22.22.

The global version of Yarn was installed for work, and I don’t really want to mess with it. Anyway around this? Thanks

In what context are you running yarn install? I don’t believe the CLI (where you’ve opened this issue) uses yarn. Did you mean to put this in a different category?

The solution is in the instructions of the track.
If you run corepack enable, you should no longer see this issue.

Having a global yarn version at 1.22.22 is fine as yarn set latest will locally (in a project folder) install higher versions using that global version.