error [email protected]: The engine "node" is incompatible with this module. Expected version ">=18.17". Got "14.17.1"
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.
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
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 https://github.com/cheeriojs/cheerio/issues/3999#issue-2460406040
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.
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.