报错描述如下:
F:\web\HouSe>npm run dev
HouSe@1.0.0 dev F:\web\HouSe
webpack-dev-server --inline --progress --config build/webpack.dev.conf.js
module.js:550
throw err;
^
Error: Cannot find module 'es-to-primitive/es6'
at Function.Module._resolveFilename (module.js:548:15)
at Function.Module._load (module.js:475:25)
at Module.require (module.js:597:17)
at require (internal/module.js:11:18)
at Object.<anonymous> (F:\web\HouSe\node_modules\_es-abstract@1.13.0@es-abstract\es2015.js:4:19)
at Module._compile (module.js:653:30)
at Object.Module._extensions..js (module.js:664:10)
at Module.load (module.js:566:32)
at tryModuleLoad (module.js:506:12)
这时候一般我们的操作就是从新npm install缺失的模module就好了,如果还是重复报错缺少依赖,这时候正确的做法应该是这样:
手动删除node_modules文件夹之后再进行npm install 解决