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

Adding a platform with a caret version adds the very latest rather than the latest matching version

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 5.0.0
    • None
    • cordova-lib
    • None

    Description

      If you add, say, windows 3.5.0 platform to a project with the save flag:

      cordova platform add windows@3.5.0 --save
      

      We write out ^3.5.0 to config.xml.

      If the platform is removed then re-added, we install 4.0.0 instead of the expected 3.8.2.

      This is because internally we are using a version of npm that doesn't understand caret versions.

      Attachments

        Activity

          People

            TimBarham Tim Barham
            TimBarham Tim Barham
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: