执行webpack命令报错

Error: Cannot find module 'webpack'
at Function.Module._resolveFilename (module.js:325:15)
at Function.Module._load (module.js:276:25)
at Module.require (module.js:353:17)
at require (internal/module.js:12:17)
at Object.<anonymous> (D:\wamp\www\laravel-master\webpack.config.js:1:75)
at Module._compile (module.js:409:26)
at Object.Module._extensions..js (module.js:416:10)
at Module.load (module.js:343:32)
at Function.Module._load (module.js:300:12)
at Module.require (module.js:353:17)

 

解决方法: npm install webpack-dev-server

posted on 2017-07-16 17:19  shen1hua  阅读(1428)  评论(0编辑  收藏  举报