找不到模块'webpack/bin/config-yargs' [英] Cannot find module 'webpack/bin/config-yargs'

查看:238
本文介绍了找不到模块'webpack/bin/config-yargs'的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

运行webpack-dev-server --config config/webpack.dev.js --progress --profile --watch --content-base src/时出错.这是错误日志:

Getting error when running webpack-dev-server --config config/webpack.dev.js --progress --profile --watch --content-base src/. Here is the error log:

module.js:442
throw err;
^

Error: Cannot find module 'webpack/bin/config-yargs'
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 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) 

推荐答案

我遇到了类似的问题.我认为这与webpack版本有关.更改webpack版本后,最新的一切都很好...

I've had a similar problem. I think it's related to webpack version. After changing webpack version the latest everything was fine...

这篇关于找不到模块'webpack/bin/config-yargs'的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆