Hydrogen CLI does not support Yarn v4 with Hydrogen upgrade #2191
Description
What is the location of your example repository?
No response
Which package or tool is having this issue?
CLI
What version of that package or tool are you using?
3.56.3
What version of Remix are you using?
2.8.0
Steps to Reproduce
I'm currently running a fairly unconventional setup that is a mono repo using Turbo, with two Hydrogen projects inside the app directory and is sharing UI and Features from the packages directory.
Recently we upgraded the package manager from yarn v1.22.21 to yarn v4.1.1 for better mono repo support and faster ci/cd times.
I am attempting to upgrade the current hydrogen version for one of the apps, however when doing so it errors saying the global yarn version is still v1.22.21 even after setting the global version to v4.1.1. Another issue is that it is attempting to run yarn install
however the command has changed to yarn add
Unfortunately we cannot upgrade with npm due to the use of workspaces in the monorepo and yarn is failing to install via the cli.
Greater support for yarn would be appreciated, but at this stage, i don't mind just knowing exactly all the dependencies needed for upgrading and could manage this manually
Expected Behavior
Upgrade Hydrogen version and its dependencies
Actual Behavior
Installation fails