I have a scraper which uses cheerio.
var cheerio = require('cheerio');
$ = cheerio.load(s, { decodeEntities: true });
var sel = $('.text');
cheerio(sel).find(selector)
When I call it locally, it works fine. When I call it on a server with Cent OS but with the same node version (12.18.3) I use locally, I get cheerio is not a function error. I cleared the node_modules folder on local and remote and made npm install but no change. What else can cause this strange behaviour?