Situation
GitHub Actions CI workflow yarn.yaml runs against node-version: 18.16, where the command yarn install fails:
[3/5] Fetching packages...
error [email protected]: The engine "node" is incompatible with this module. Expected version ">=20". Got "18.16.1"
error Found incompatible module.
Assessment
-
[email protected] is a dependency of [email protected] where ink is also listed under bundleDependencies. This seems to allow a wildcard version selection, that includes the latest ink version [email protected], and exposes a bug in Yarn Classic (v1). Yarn Modern and npm don't have a problem with this.
-
Using the following command can work around the Yarn Classic bug
yarn install --ignore-engines
-
Once dependencies have been installed using the above workaround, executing yarn test now fails.
Situation
GitHub Actions CI workflow yarn.yaml runs against
node-version: 18.16, where the commandyarn installfails:Assessment
[email protected] is a dependency of [email protected] where
inkis also listed underbundleDependencies. This seems to allow a wildcard version selection, that includes the latest ink version[email protected], and exposes a bug in Yarn Classic (v1). Yarn Modern and npm don't have a problem with this.Using the following command can work around the Yarn Classic bug
Once dependencies have been installed using the above workaround, executing
yarn testnow fails.