8000 rror cheerio@1.0.0: The engine "node" is incompatible with this module. Expected version ">=18.17". Got "16.18.1" error Found incompatible module. · Issue #4003 · cheeriojs/cheerio · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

rror cheerio@1.0.0: The engine "node" is incompatible with this module. Expected version ">=18.17". Got "16.18.1" error Found incompatible module. #4003

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

Closed
kjanghel opened this issue Aug 12, 2024 · 10 comments

Comments

@kjanghel
Copy link

Updating the node version is not an option.

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

@MolkaViacheslav
Copy link

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

@4rgs
Copy link
4rgs commented Aug 12, 2024

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

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

@MolkaViacheslav
Copy link

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

@kjanghel
Copy link
Author

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

@StevenTso
Copy link

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

@wghule
Copy link
wghule commented Aug 14, 2024

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!

@wardariaz70
Copy link

error cheerio@1.0.0: 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

8000

@hanamantk
Copy link
hanamantk commented Aug 22, 2024

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

@xahmejaz-rakbank
Copy link

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

worked for me as well

@fb55
Copy link
Member
fb55 commented Dec 25, 2024

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

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

No branches or pull requests

9 participants
0