I am trying to install the cordova plugin to use the camera in an Ionic 2 application, but I keep getting the error:
Failed to install 'cordova-plugin-camera': CordovaError: Installed plug-in version: " cordova-plugin-compat@1.0.0 " does not satisfy the requirements of the dependency plugin " cordova-plugin-compat @ ^ 1.1.0". Trying --force to use the installed plugin as a dependency.
I tried to remove the cordova plugin compatibility and reinstall it, as I found many answers about this error in stackoverflow, but none of them worked for me. I also tried it with the flag --force, but did not have time.
Also I tried: cordova plugin remove cordova-plugin-compat --force
But I get an error message:
Error: Cannot find plugin.xml for plugin "cordova-plugin-camera". Please try adding again.
I really hope someone can help me as I am stuck here ... Thanks in advance.
source
share