Skip to content

ci: work around yarn install failure on Node.js 18.x #91

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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

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