yarn version incorrect despite choosing version 2

I am getting this error when running the CLI
Yarn version is incompatible. Please make sure you use Yarn version >= 1 and <3.
Yarn version is incompatible. Please make sure you use Yarn version >= 1 and <3.
However when checking the version I've switched to version 2 of yarn
yarn -v
# comes back with "2.4.3"
yarn -v
# comes back with "2.4.3"
3 Replies
Mateusz Ostafil
Mateusz Ostafil10mo ago
Hey, are you on windows or unix based machine?
+ 215% Tariffs
+ 215% TariffsOP10mo ago
Windows based
Mateusz Ostafil
Mateusz Ostafil9mo ago
I'm sorry for the delayed response - it's the holiday season. Can you run: yarn.cmd --version

Did you find this page helpful?