Vue项目执行 npm run dev 报错解决方法

Vue项目执行 npm run dev 报错解决方法

错误如下:

Error: Cannot find module 'webpack-merge'

at Function.Module._resolveFilename (module.js:440:15)
at Function.Module._load (module.js:388:25)
at Module.require (module.js:468:17)
at require (internal/module.js:20:19)
at Object. (D:\node6.2.0\node_global\etc\sellapp\config\dev.env.js:1:75)
at Module._compile (module.js:541:32)
at Object.Module._extensions..js (module.js:550:10)
at Module.load (module.js:458:32)
at tryModuleLoad (module.js:417:12)
at Function.Module._load (module.js:409:3)
npm ERR! Windows_NT 6.1.7601
npm ERR! argv "D:\node6.2.0\node.exe" "D:\node6.2.0\node_modules\npm\bin\npm-cli.js" "run" "dev"
npm ERR! node v6.2.0
npm ERR! npm v3.8.9
npm ERR! code ELIFECYCLE
npm ERR! [email protected] dev: node build/dev-server.js
npm ERR! Exit status 1

报错显示没有发现webpack-merge这个包

删除node_modules

npm cache clean

npm i

重新安装依赖。

你可能感兴趣的:(VUE学习之路,vue,npm,javascript,css3,jquery)