Skip to content
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

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

Open
kjanghel opened this issue Aug 12, 2024 · 9 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.

@Sleepyy007
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

@Sleepyy007
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 [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

@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

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

8 participants