passive-yellow
passive-yellow13mo ago

Unable to install crawlee on node 18

On yarn add crawlee, I got the error:
cheerio@1.0.0: The engine "node" is incompatible with this module. Expected version ">=18.17". Got "18.16.0"
cheerio@1.0.0: The engine "node" is incompatible with this module. Expected version ">=18.17". Got "18.16.0"
then on upgrading my node to 18.17, I tried again, and got this:
error got@14.4.2: The engine "node" is incompatible with this module. Expected version ">=20". Got "18.17.1"
error got@14.4.2: The engine "node" is incompatible with this module. Expected version ">=20". Got "18.17.1"
I'm not sure what I'm doing wrong here. According to the Github documentation, it should work with node >=16? Or is README outdated?
3 Replies
Marco
Marco13mo ago
Hello! The readme seems to be outdated. You could either use npm or use the --ignore-engines flag for yarn: https://stackoverflow.com/questions/45088031/how-to-ignore-incompatible-engine-node-error-on-installing-npm-dependencies-wi. Crawlee should still work.
Stack Overflow
How to ignore incompatible engine "node" error on installing npm de...
Given this package.json: { "name": "yarn-install-fail", "version": "1.0.0", "description": "", "main": "index.js", "scripts": {}, "author": "", "license": "ISC", "dependencies": { ...
optimistic-gold
optimistic-gold13mo ago
@Light
add to package.json
"overrides": {
"got-scraping": "4.0.5", // FIX THIS you can read here: https://github.com/apify/crawlee/discussions/2515
"cheerio": "1.0.0-rc.12" // for another issue
},
"overrides": {
"got-scraping": "4.0.5", // FIX THIS you can read here: https://github.com/apify/crawlee/discussions/2515
"cheerio": "1.0.0-rc.12" // for another issue
},
passive-yellow
passive-yellowOP13mo ago
i see. thanks!

Did you find this page helpful?