Error: Cannot find module 'webpack-cli/bin/config-yargs'

If you upgrade webpack to 5. *, and webpack cli to 4. *, an error will be reported:

 

Error: Cannot find module 'webpack-cli/bin/config-yargs'

 

Temporary solution:
Back off webpack cli to version 3. * for example:

"webpack-cli": "^ 3.3.12"

posted @ 2020-11-18 14:54  yaokunlun  阅读(158)  评论(0编辑  收藏  举报