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:
- When starting Vue project: cannot find module ‘webpack cli/bin/config yargs’ error [How to Fix]
- Error reported after moving or copying Vue items: cannot find module ‘xxx‘
- Failed to load plugin react: cannot find module ‘eslint plugin react’ appears when running Vue project‘
- node.js Cannot find module “XXX” solution
- [Solved] Error: Cannot find module ‘@vue/cli-shared-utils
- Failed to load bundle…Unable to resolve module `xxx` from xxx: Module `xx` does not exist
- As Error:Failed to find configured root that contains /storage/emulated/0/xxx/xxx/xxx.png
- Solution to inaccessibility of Vue cli scaffold project after startup
- VUE Error: Cannot find module ‘webpack/bin/config-yargs’
- Front end Vue project operation error module build failed
- [Solved] Vue Project Error: This relative module was not found
- Cannot find module ‘lodash’
- Error “NPM err” when starting Vue project! code ELIFECYCLE”
- Duplicate class com.xxx.xxx Find in modules problem solving (Aidl interdependence problem)
- Vue project error: uncaught typeerror: vuex__ WEBPACK_ IMPORTED_ MODULE_ 1__ . default.store is not a constructor
- NPM- Cannot find module ‘xxxxx’
- Qt Failed opening project “xxx“: No plugin can open project type “text/plain“
- ModuleNotFoundError: No module named xxx
- Error: Cannot find module ‘process-nextick-args’
- Module build failed: error: cannot find module ‘node sass’ error