Skip to content

GitHub Actions CI yarn install fails (error ink@6.0.1) #89

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 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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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