Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error: Cannot find module 'entities/lib/decode_codepoint.js'

I am using cheerio module for web scraping . It require htmlparser2 module , after installing htmlparser2. it gives following error-

Error: Cannot find module 'entities/lib/decode_codepoint.js'
like image 971
Pawan Singh Avatar asked Aug 11 '14 06:08

Pawan Singh


People also ask

How do I resolve Cannot find module error using node JS?

To fix the Cannot find module error, simply install the missing modules using npm . This will install the project's dependencies into your project so that you can use them. Sometimes, this might still not resolve it for you. In this case, you'll want to just delete your node_modules folder and lock file ( package-lock.

Can not find module index JS?

If you are getting the "Cannot find module" error when trying to run a local file, make sure that the path you passed to the node command points to a file that exists. For example, if you run node src/index. js , make sure that the path src/index. js points to an existing file.

What does Cannot find module mean?

The "Error [ERR_MODULE_NOT_FOUND]: Cannot find module" occurs when you set the type attribute to module in your package. json file, but omit the file extension when importing. To solve the error, specify the extension when importing local files.

Can not find module node path?

To solve the "Cannot find module path or its corresponding type declarations" error, install the types for node by running the command npm i -D @types/node . You can then import path with the following line of code import * as path from 'path' .


1 Answers

Use this in your terminal:

npm install grunt-contrib-jshint --save-dev

Seen here:

https://www.npmjs.com/package/grunt-contrib-jshint

like image 87
Gilko Avatar answered Nov 03 '22 18:11

Gilko