sampart / cordova-plugin-app-version

Cordova plugin to return the version number of the current app [not maintained]
MIT License
400 stars 197 forks source link

Unable to install. Broken Dependency #136

Open vgahlaut opened 1 year ago

vgahlaut commented 1 year ago

When trying to install this plugin, it fails to install with following error. I have @awesome-cordova-plugins/core version 5.43.0 as my other plugins (like WifiWizard etc) are dependent on that so can not update it to 6.4.0. Please let me know if there is any way to resolve it. I tried to look in plugin.xml file to look a dependency but I do not see dependency on @awesome-cordova-plugins/core 6.4.0 so not sure how do I fix it

npm install @awesome-cordova-plugins/app-version npm ERR! code ERESOLVE npm ERR! ERESOLVE unable to resolve dependency tree npm ERR! npm ERR! While resolving: SmarteefiCordova6@0.0.1 npm ERR! Found: @awesome-cordova-plugins/core@5.46.0 npm ERR! node_modules/@awesome-cordova-plugins/core npm ERR! @awesome-cordova-plugins/core@"^5.43.0" from the root project npm ERR! npm ERR! Could not resolve dependency: npm ERR! peer @awesome-cordova-plugins/core@"^6.0.1" from @awesome-cordova-plugins/app-version@6.4.0 npm ERR! node_modules/@awesome-cordova-plugins/app-version npm ERR! @awesome-cordova-plugins/app-version@"*" from the root project npm ERR! npm ERR! Fix the upstream dependency conflict, or retry npm ERR! this command with --force, or --legacy-peer-deps npm ERR! to accept an incorrect (and potentially broken) dependency resolution. npm ERR!

sampart commented 1 year ago

I'm sorry, this project is unmaintained so I'm not able to help with queries like this. But hopefully someone from the community will be able to help you.

amandylabs commented 1 year ago

Anyone wants to use updated version of UPI payment with all new banks and android API 30+ use below version Cordova plugin.

cordova plugin add cordova-plugin-get-app-version https://www.npmjs.com/package/cordova-plugin-get-app-version