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.