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

Open
painkkiller opened this issue Aug 12, 2024 · 2 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)

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

3 participants