Error when using npm run dev:
Error: Cannot find module 'webpack-cli/bin/config-yargs'
The reason is not found webpack-cli package, you can use this package npm added:
cnpm/npm i webpack-cli -D
And then perform: npm run dev would not have given up!