How do I resolve npm peerinvalid error when versions don't actually conflict?

Trying to install ngmin-webpack-plugin

, I get this error:

npm ERR! peerinvalid The package webpack does not satisfy its siblings' peerDependencies requirements!
npm ERR! peerinvalid Peer angular-webpack-plugin@0.0.1 wants webpack@~1.1.0
npm ERR! peerinvalid Peer webpack-dev-server@1.4.6 wants webpack@1.x

      

Please note that version 1.x

and version requirements ~1.1.0

do not conflict.

How can I solve this problem?

+3


source to share


1 answer


As noted in the work, the problem is with the version webpack

I installed: webpack@1.3.4

incompatible with the requirement angular-webpack-plugin

on ~1.1.0

.



The fix, in my case, was an update angular-webpack-plugin

that has a webpack version requirement to update.

0


source







All Articles