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

Restoring multiple platforms fails

    XMLWordPrintableJSON

Details

    Description

      Steps to reproduce:
      1. Create a blank app: cordova create test com.app.test test
      2. Add and save a platform: cordova platform add --save ios
      3. Add and save another platform: cordova platform add --save android
      4. Remove the platforms: cordova platform remove android ios
      5. Try to restore platforms automatically: cordova prepare

      Expected: both platforms installed and prepared
      Actual:

      Error: Trying to initialize npm when settings have not been restored from a previous initialization.
      

      Running cordova prepare again fixes the issue.

      Attachments

        Issue Links

          Activity

            People

              omefire Omar Mefire
              dblotsky Dmitry Blotsky
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - 48h
                  48h
                  Remaining:
                  Remaining Estimate - 48h
                  48h
                  Logged:
                  Time Spent - Not Specified
                  Not Specified