- 执行npm run dev突然报错
E:\Demo\a-v\todolist>cnpm run dev
todolist@1.0.0 dev E:\Demo\a-v\todolist
webpack-dev-server --inline --progress --config build/webpack.dev.conf.js
module.js:549
throw err;
^
Error: Cannot find module 'array-includes'
at Function.Module._resolveFilename (module.js:547:15)
at Function.Module._load (module.js:474:25)
at Module.require (module.js:596:17)
at require (internal/module.js:11:18)
at Object.<anonymous> (E:\Demo\a-v\todolist\node_modules_webpack-dev-server@2.11.3@webpack-dev-server\lib\polyfills.js:6:18)
at Module._compile (module.js:652:30)
at Object.Module._extensions..js (module.js:663:10)
at Module.load (module.js:565:32)
at tryModuleLoad (module.js:505:12)
at Function.Module._load (module.js:497:3)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! todolist@1.0.0 dev: webpack-dev-server --inline --progress --config build/webpack.dev.conf.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the todolist@1.0.0 dev script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\gyn11565\AppData\Roaming\npm-cache_logs\2019-01-16T14_01_51_386Z-debug.log
- 解决方案 把node_modules删除,重新cnpm install
网友评论