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.