cheerio icon indicating copy to clipboard operation
cheerio copied to clipboard

rror [email protected]: The engine "node" is incompatible with this module. Expected version ">=18.17". Got "16.18.1" error Found incompatible module.

Open kjanghel opened this issue 1 year ago • 8 comments

Updating the node version is not an option.

can we have a immediate solution for this? Our prod deployment is failing for the same.

kjanghel avatar Aug 12 '24 13:08 kjanghel

The same problem, we use enzyme, which uses cheerio, we don't really want to update node either

MolkaViacheslav avatar Aug 12 '24 13:08 MolkaViacheslav

we used, "overrides": { "cheerio": "1.0.0-rc.12" }

on our package.json to solve our product in the meanwhile

4rgs avatar Aug 12 '24 14:08 4rgs

Its work for me: }, "resolutions": { "cheerio": "1.0.0-rc.12" }

MolkaViacheslav avatar Aug 12 '24 16:08 MolkaViacheslav

can u share a sample package json it doesn't work for us

kjanghel avatar Aug 12 '24 16:08 kjanghel

after adding @Sleepyy007 suggestion, try deleting package-lock.json or yarn.lock and node_modules folder and try reinstalling (npm i or yarn install)

StevenTso avatar Aug 13 '24 13:08 StevenTso

I have the same problem。I use cheerio 1.0.0-rc.10。It can supprt the node version I am using。 but cheerio 1.0.0 recently only support node 18。It causes automatic upgrade issues for existing projects。Please upgrade the major version if necessary!

wghule avatar Aug 14 '24 07:08 wghule

error [email protected]: The engine "node" is incompatible with this module. Expected version ">=18.17". Got "16.18.1" 1.0.0 uses node 18; but my os centOS 7, only support upto 16

wardariaz70 avatar Aug 22 '24 02:08 wardariaz70

Its work for me: }, "resolutions": { "cheerio": "1.0.0-rc.12" } @Sleepyy007 is there a way we can override this cheerio to only enzyme package without effecting other package

hanamantk avatar Aug 22 '24 09:08 hanamantk

Its work for me: }, "resolutions": { "cheerio": "1.0.0-rc.12" }

worked for me as well

xahmejaz-rakbank avatar Nov 05 '24 06:11 xahmejaz-rakbank

Sorry for the inconvenience — not something that can be rolled back unfortunately.

fb55 avatar Dec 25 '24 13:12 fb55