Here’s my package.json:
{
"scripts": {
"examples": "docusaurus-examples",
"start": "docusaurus-start",
"build": "docusaurus-build",
"publish-gh-pages": "docusaurus-publish",
"write-translations": "docusaurus-write-translations",
"version": "docusaurus-version",
"rename-version": "docusaurus-rename-version"
},
"devDependencies": {
"docusaurus": "^1.14.7",
"cheerio": "^0.22.0"
},
"dependencies": {
"react-treebeard": "^3.2.4"
}
}
When I do yarn install
I get this error:
error [email protected]: The engine "node" is incompatible with this module. Expected version ">=18.17". Got "16.20.2"
error Found incompatible module.
That makes sense – I’m running NodeJS 16.20.2 and per https://github.com/cheeriojs/cheerio/releases/tag/v1.0.0 cheerio 1.0.0 was released a few day ago and bumped the minimum required version NodeJS.
Yes, ideally, I’d upgrade the version of NodeJS that I’m running, but I get errors when I did that and then did yarn build
and that’s not my question, anyway.
My question is… why is yarn install
trying to install cheerio 1.0.0 when I’m clearly telling it to install 0.22.0? I tried ^0.22.0
and ~0.22.0
.
Maybe one of docusaurus’s dependencies is requiring cheerio 1.0.0 but, if that were the case, then shouldn’t I be getting some sort of “incompatible requirements” error insted of I am getting?