Error while install cordova-uglify, Help..!

cordova-uglify@0.2.1 postinstall /usr/local/lib/node_modules/cordova-uglify
node scripts/install.js

/usr/local/lib
├── UNMET PEER DEPENDENCY clean-css@3.4.6
├── cordova-uglify@0.2.1
├── UNMET PEER DEPENDENCY imagemin@4.0.0
├── UNMET PEER DEPENDENCY ng-annotate@1.0.2
└── UNMET PEER DEPENDENCY uglify-js@2.5.0

npm WARN EPEERINVALID cordova-uglify@0.2.1 requires a peer of uglify-js@2.4.14 but none was installed.
npm WARN EPEERINVALID cordova-uglify@0.2.1 requires a peer of ng-annotate@0.15.4 but none was installed.
npm WARN EPEERINVALID cordova-uglify@0.2.1 requires a peer of clean-css@2.2.2 but none was installed.
npm WARN EPEERINVALID cordova-uglify@0.2.1 requires a peer of imagemin@3.2.0 but none was installed.

having error when try install
npm install cordova-uglify

anyone can help?
Thanks.

i have tried “npm cache clean”, but it doesnt works.

I also have the same problem. Tried to install individually every package in global, but didnt do the trick

Solved!

You need to install the exact versions of every package.

So you have to do:

npm install uglify-js@2.4.14
npm install ng-annotate@0.15.4
npm install clean-css@2.2.2
npm install imagemin@3.2.0

Hope it helps! :wink: