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

cordova cli not adding platform via npm specifying new version before 24 hours of release

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 6.0.0
    • None
    • cordova-cli
    • Mac

    Description

      A new release of platform ios cordova-ios@4.1.0 is published to NPM

      User tries to install with $ cordova platform ios@4.1.0

      At the time of this command the npm cache information for the pacakge cordova-ios in ~/.cordova/lib/npm_cache/registry.npmjs.org/cordova-ios/.cache.json doesn't have the information about 4.1.0 and the file is not older than 24 hours.

      cordova cli is configured with npm cache-min = 3600*24 (24 hours)
      If the file in the cache is not older than 24 hours npm will not check the registry. and requested package cordova-ios@4.1.0 is not added to the cache.

      There is no err catch for this case in the cordova-lib [1]

      [1]: https://github.com/apache/cordova-lib/blob/master/cordova-lib/src/cordova/lazy_load.js#L158

      Attachments

        Activity

          People

            Unassigned Unassigned
            csantana Carlos Santana
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: