the project that was still being worked on before leaving work last night suddenly reported the following error as soon as the company started the project as soon as possible:
Error: Cannot find module "chalk"
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:594:15)
at Function.Module._load (internal/modules/cjs/loader.js:520:25)
at Module.require (internal/modules/cjs/loader.js:650:17)
at require (internal/modules/cjs/helpers.js:20:18)
at Object.<anonymous> (C:\Users\lhy\Desktop\project_ljl\vue-admin-master\build\check-versions.js:1:75)
at Module._compile (internal/modules/cjs/loader.js:702:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:713:10)
at Module.load (internal/modules/cjs/loader.js:612:32)
at tryModuleLoad (internal/modules/cjs/loader.js:551:12)
at Function.Module._load (internal/modules/cjs/loader.js:543:3)
npm err! Code ELIFECYCLE
npm err! Errno 1
npm err! Vueadmin@1.0.5 dev: node build/dev-server.js
npm err! Exit status 1
npm err!
npm err! Failed at the vueadmin@1.0.5 dev script.
npm err! This is probably not a problem with npm. There is likely additional logging output above.
npm WARN Local package.json exists, but node_modules missing, did you mean to install?
npm err! A complete log of this run can be found in:
npm err! C:UserslhyAppDataRoamingnpm-cache_logs2018-07-27T00_57_02_155Z-debug.log
Process finished with exit code 1
I do have chalk as soon as I check it, and after npm install has done it again, I still report this error. (the project technology stack is vue-cli scaffolding and element-ui)