Uncaught Error: Cannot find module 'cheerio

2019-08-24 13:22发布

I am trying to develop a node webkit application and trying to use the cheerio library. I have imported it using var cheerio = require("cheerio");

However when I run the program, I get the following error:

Uncaught Error: Cannot find module 'cheerio'      module.js:329

My node_modules folder contains the cheerio folder and I have included it in my package.json file as well. I even tried installing cheerio globally and I face this error.

0条回答
登录 后发表回答