Skip to content

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

@MikeMcC399

Description

@MikeMcC399

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions