When starting Vue project: cannot find module ‘webpack cli/bin/config yargs’ error [How to Fix]

Cannot find module ‘webpack-cli/bin/config-yargs’ :

Webpack is not compatible with the webpack-dev-server version:

Under this vue project, type :
npm uninstall  webpack -g
npm uninstall -g webpack-dev-server
Uninstall and reinstall:
npm install [email protected] --save-dev
npm install [email protected] --save-dev

Restart the project, success!


Read More: