I am trying to install cordova plugin for camera to use in Ionic 2 application, but I am keep getting error:
Failed to install 'cordova-plugin-camera': CordovaError: Version of installed plugin: "[email protected]" does not satisfy dependency plugin requirement "cordova-plugin-compat@^1.1.0". Try --force to use installed plugin as dependency.
I tried removing cordova plugin compat and reinstalling it since I found many answers about this error on stackoverflow, but none of them worked for me. I also tried it with --force
flag, but no success.
Also I tried: cordova plugin remove cordova-plugin-compat --force
But I get an error:
Error: Cannot find plugin.xml for plugin "cordova-plugin-camera". Please try adding it again.
I really hope anyone can help me since I am stuck here... Thank you in beforehand.
This might help you:
cordova plugin remove --force cordova-plugin-compat
cordova plugin add cordova-plugin-compat
cordova platform remove android
cordova platform add android
cordova plugin add cordova-plugin-camera
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With