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

前端 未结 8 1348
渐次进展
渐次进展 2021-01-04 01:57

\'Github\' asked me to update \'webpack-dev-server\' to version 3.1.11 or higher for security reasons.

However, \'npm run dev\' will not run after the update.

<
8条回答
  •  一整个雨季
    2021-01-04 02:54

    It is because of version of webpack-cli. In some versions, there is no config-yargs.js file. So ^3.3.11 version of webpack-cli worked for me. Try it:

    npm i webpack-cli@^3.3.11

提交回复
热议问题