Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Error: Cannot find module 'cheerio' apigee

Dear Team

For the following package json including cheerio dependency:

"dependencies": { "cheerio": "latest", "express": "latest", "nodemailer": "^4.6.7", "request": "latest" }

in App logs error is thrown:

* Error: Cannot find module 'cheerio' Error: Cannot find module 'cheerio' at module.js:340:0 at module.js:280:0 at module.js:364:0 at require (module.js:380:0) at /organization/environment/api/server.js:4:0 at module.js:456:0 at module.js:474:0 at module.js:356:0 at module.js:312:0 at module.js:497:0 at startup (trireme.js:142:0) at trireme.js:923:0

on application invocation and not during deployment.

Deployment done using apigee tool:

apigeetool deploynodeapp -n xxx-project -d . -m server.js -o ...

I can find any results on the topic thus I am raising this question to the community.

Thank you,

Slobodanka

0 3 1,169
3 REPLIES 3