npm UNMET PEER DEPENDENCY cli@3.3.12 > webpack-cli@3.3.12

Now in my project there are some unmet peer dependencies:

$ npm list|grep webpack

Then I tried to remove unmet webpack-cli dependency

$ npm uninstall webpack-cli

Run webpack serve now and but it's saying webpack is not found

$ webpack serve

But webpack is installed locally and globally, while webpack-cli is only installed globally.

$ npm list|grep webpack

$ npm list -g|grep webpack

Install webpack-cli again will fix this problem

npm install --dev webpack-cli

Now npm list output has no peer dependency warnings.

$ npm list|grep webpack