Uncaught Error: Cannot find module 'cheerio' Nodewebkit

爱⌒轻易说出口 提交于 2019-12-13 06:35:19

问题


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.

来源:https://stackoverflow.com/questions/31489279/uncaught-error-cannot-find-module-cheerio-nodewebkit

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!