Skip to content

Package version 7.15.3 has a node engine version breaking change #82

@amirilovic

Description

@amirilovic

Hi, I noticed that in the engines section in package.json changed:

from:

 "engines": {
    "node": ">=12.0"
  },

to:

 "engines": {
    "node": ">=18.0"
  },

This can be considered a breaking change as it can break package install for dependant packages.

We had a problem with running cy2:

yarn global add cy2@4.0.6
cy2 run --browser chrome --parallel ....

The above script started failing two days ago as our CI agent as it runs node with version 16.x.x.

The error that we got was:

error roarr@7.18.3: The engine "node" is incompatible with this module. Expected version ">=18.0". Got "16.18.1"

in the end for us the fix was to use yarn --ignore-engines install flag.

I noticed that npm just issues a warning but executes the script.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions