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

error [email protected]: The engine "node" is incompatible with this module. Expected version ">=18.17". Got "14.17.1" #4001

Closed
painkkiller opened this issue Aug 12, 2024 · 4 comments

Comments

@painkkiller
Copy link

painkkiller commented Aug 12, 2024

It rather question than issue. After release of [email protected] my project got broken and I don't use cheerio directly, It's in peer dependancies inside my package-lock.json file. In fact everywhere is used

 "cheerio": {
            "version": "1.0.0-rc.12",
            "resolved": "https://domain/repository/npm-proxy/cheerio/-/cheerio-1.0.0-rc.12.tgz",
            "integrity": "sha512-VqR8m68vM46BNnuZ5NtnGBKIE/DfN0cRIzg9n40EIq9NOv90ayxLBXA8fXC5gquFRGJSTRqBq25Jt2ECLR431Q==",
            "dev": true,
            "requires": {
                "cheerio-select": "2.1.0",
                "dom-serializer": "^2.0.0",
                "domhandler": "^5.0.3",
                "domutils": "^3.0.1",
                "htmlparser2": "^8.0.1",
                "parse5": "^7.0.0",
                "parse5-htmlparser2-tree-adapter": "^7.0.0"
            },

But I am getting this error anyway. So now I am in the trouble cause I can't upgrade nodejs, I need 14.17.1 version for one package I've use. And so far I see It's impossible to use cheerio-1.0.0-rc.12 version because [email protected] is installing instead.

@KarthikAppCraft
Copy link

KarthikAppCraft commented Aug 12, 2024

Adding "cheerio": "1.0.0-rc.12" to your dependencies in package.json will allow you to use the older version of Cheerio, ensuring compatibility with your current setup.

Though it is a peer dependencies, you can use explicitly in package.json as temporary work around

@eladonline
Copy link

Adding "cheerio": "1.0.0-rc.12" to your dependencies in package.json will allow you to use the older version of Cheerio, ensuring compatibility with your current setup.

Though it is a peer dependencies, you can use explicitly in package.json as temporary work around
#3999 (comment)

@syed1988
Copy link

Adding "cheerio": "1.0.0-rc.12" to your dependencies in package.json will allow you to use the older version of Cheerio, ensuring compatibility with your current setup.

Though it is a peer dependencies, you can use explicitly in package.json as temporary work around

Hi,
I had added cheerio": "1.0.0-rc.12" to my package.json and tried running yarn install and this failed due to the following error: [email protected]: The engine "node" is incompatible with this module. Expected version ">=18.17". Got "16.17.0".

I had also tried installing this rc package independently via yarn add [email protected] and tried installing it globally as well.

It seems like 1.0.0 was being installed.

@fb55
Copy link
Member

fb55 commented Dec 25, 2024

Make sure to not use any wildcards for the override (eg. ^1.0.0-rc.12 will still refer to the latest release). Node < 18 is end of life, so please also consider updating.

@fb55 fb55 closed this as not planned Won't fix, can't repro, duplicate, stale Dec 25, 2024
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

5 participants