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

前端 未结 8 1403
渐次进展
渐次进展 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:41

    Delete package-lock.json file. Change following in package.json.

    "webpack": "^4.32.2",
    "webpack-cli": "^3.3.0",
    "webpack-dev-server": "^3.11.0"
    

    Run npm install

提交回复
热议问题