The scenarios in which this problem occurs vary, but the solutions are basically the same. This article takes lodash module as an example
- if
Cannot find module lodash
appears after the pull code is run, usually someone else USES a plug-in lodash, but you do not have it in your local environment, you can directly go to the package. Json to check if there is lodash, if there is, that proves that you do not install the lodash, use CNPM install
to install it. Json package.json not found, Cannot find module lodash
, global search under the file lodash
, if the file is not used, then delete node_module
, re-use CNPM install
can be installed; Json . Just ask the relevant person to submit it, and then refer to step 1. Json, node_module package-lock. Use NPM cache clean --force
to clear the cache. Then use NPM install
to install. Json copy a copy of packing-lock-. json
copy a copy of packing-lock. json
copy a copy of packing-lock. json
copy a copy of packing-lock-. (Of course, if the file is u update status, then don't bother, check the update content, and then submit it)
Read More:
- Vue project startup error: cannot find module XXX
- Module build failed: error: cannot find module ‘node sass’ error
- NPM- Cannot find module ‘xxxxx’
- [Solved] Error: Cannot find module ‘webpack/lib/RequestShortener’
- Error: Cannot find module ‘process-nextick-args’
- Error: cannot find module ‘webpack / lib / ruleset’_ solve
- Error: cannot find module ‘node sass’
- Solved – problem cannot find module ‘webpack / bin / config yargs’
- Error reported after moving or copying Vue items: cannot find module ‘xxx‘
- Error: Cannot find module ‘webpack/schemas/WebpackOptions.json’
- node.js Cannot find module “XXX” solution
- Node.js Cannot find module ‘mysql’ ‘express’
- Error: cannot find module ‘mongoose’
- Crazy error of cannot find module ‘xxx’
- Cannot find module ‘internal / util / types’ appears during gulp build
- (node:268660) UnhandledPromiseRejectionWarning: Error: Cannot find module ‘yallist‘
- Cannot find module ‘body-parser’
- Gulp Error: Cannot find module ‘jshint/src/cli’;
- Node.js Error: cannot find module ‘xxx’
- NPM error ‘cannot find module’ internal / util / types’ solution;