Cause: a module that the project depends on cannot be found
Solution:
1. delete the folder where
modules are stored node_ module
;
2. Execute the clear cache
command NPM cache clean
If an error is reported, use to force
to clear NPM cache clean -- force
If an error is reported, delete the package-lock.json
file;
3. Reinstall the module, NPM install
; (the package-lock.json file will be automatically regenerated)
Then restart NPM run dev.
Read More:
- Cannot find module ‘lodash’
- Error “NPM err” when starting Vue project! code ELIFECYCLE”
- The solution of NPM err! Code elifecycle
- On the use of NPM cache clean — force
- NPM report error: eperm: operation not permitted, unlink… Solution and clear cache_ modules
- Error: EBUSY: resource busy or locked
- Solution of NPM err! Code elifecycle
- NPM install error cb.apply is not a function
- error Unable to authenticate, need: BASIC realm=“Sonatype Nexus Repository Manager“
- error This is probably not a problem with npm. There is likely additional logging output above.
- Command failed: NPM install — loglevel error — registry= https://registry.npm.taobao.org
- Failed to load plugin jsdoc: Cannot find module ‘eslint-plugin-jsdoc‘
- 【ipfs-api】npm ERR! JSON.parse package.json must be actual JSON, not just JavaScript.
- Error reported after moving or copying Vue items: cannot find module ‘xxx‘
- Some mistakes in using NPM
- npm ERR! Error: CERT_ Untrusted problem solving
- Yard error: found incompatible module
- [Vue] install vuex, error: eperm: operation not permitted, rename
- Error: ENOENT: no such file or directory, mkdir E:\
- Error code elifecycle errorno when NPM install command is executed in Vue project