Situation
GitHub Actions CI workflow yarn.yaml runs against node-version: 18.16, where the command yarn install fails:
[3/5] Fetching packages...
error ink@6.0.1: The engine "node" is incompatible with this module. Expected version ">=20". Got "18.16.1"
error Found incompatible module.
Assessment
-
ink@3.2.0 is a dependency of tap@15.2.3 where ink is also listed under bundleDependencies. This seems to allow a wildcard version selection, that includes the latest ink version ink@6.0.1, 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
ink@3.2.0 is a dependency of tap@15.2.3 where
inkis also listed underbundleDependencies. This seems to allow a wildcard version selection, that includes the latest ink versionink@6.0.1, 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.