Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-12606

Cordova fails to install plugin dependency from url

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: Master
    • Fix Version/s: None
    • Component/s: cordova-lib
    • Environment:

      Windows 10, Node 4.5.0, npm 3.10.10

      Description

      When trying to install android platform on top of the plugin with the following line in its `plugin.xml`

      <dependency id="cordova-plugin-device" url="https://github.com/apache/cordova-plugin-device" />
      

      Getting the following error:

      Installing "cordova-plugin-geolocation-tests" for ios
      Failed to install 'cordova-plugin-geolocation-tests': CordovaError: Version of installed plugin: "cordova-plugin-device@1.1.6-dev" does not satisfy dependency plugin requirement "cordova-plugin-device@". Try --force to use installed plugin as dependency.
          at /Users/jenkins/jenkins/workspace/cordova-periodic-build/cordova-lib/cordova-lib/src/plugman/install.js:575:33
          at _fulfilled (/Users/jenkins/jenkins/workspace/cordova-periodic-build/cordova-lib/cordova-lib/node_modules/q/q.js:787:54)
          at self.promiseDispatch.done (/Users/jenkins/jenkins/workspace/cordova-periodic-build/cordova-lib/cordova-lib/node_modules/q/q.js:816:30)
          at Promise.promise.promiseDispatch (/Users/jenkins/jenkins/workspace/cordova-periodic-build/cordova-lib/cordova-lib/node_modules/q/q.js:749:13)
          at /Users/jenkins/jenkins/workspace/cordova-periodic-build/cordova-lib/cordova-lib/node_modules/q/q.js:509:49
          at flush (/Users/jenkins/jenkins/workspace/cordova-periodic-build/cordova-lib/cordova-lib/node_modules/q/q.js:108:17)
          at nextTickCallbackWith0Args (node.js:420:9)
          at process._tickCallback (node.js:349:13)
      Error: Version of installed plugin: "cordova-plugin-device@1.1.6-dev" does not satisfy dependency plugin requirement "cordova-plugin-device@". Try --force to use installed plugin as dependency.
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                alsorokin Alexander Sorokin
                Reporter:
                alsorokin Alexander Sorokin
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: