Skip to content

Conversation

@MikeMcC399
Copy link

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.

Yarn should not be attempting to use [email protected] as [email protected] is defined as a dependency of [email protected] and this is the version to install.

This is caused by a bug in Yarn Classic (v1), which is however unsupported since January 2020 (see Yarn 1 GitHub repo and Yarn Classic v1 documentation) and so there is no expectation that the bug will be fixed. The problem does not occur in Yarn Modern, or in npm.

Change

In yarn.yaml, change to use:

yarn install --ignore-engines

Note that this does not allow the workflow to succeed, because then yarn test fails, however it does provide more information about the status of the repository, if dependency installation is successful and tests can run.

@cypress-app-bot
Copy link

@MikeMcC399
Copy link
Author

Closing, as there was no response.

It's difficult to do anything meaningful in this repo any more since it can't be properly maintained.

@MikeMcC399 MikeMcC399 closed this Aug 25, 2025
@MikeMcC399 MikeMcC399 deleted the gha-yarn-install branch August 25, 2025 07:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

GitHub Actions CI yarn install fails (error [email protected])

2 participants