[ 
https://issues.apache.org/jira/browse/CB-9278?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14649426#comment-14649426
 ] 

ASF GitHub Bot commented on CB-9278:
------------------------------------

Github user omefire commented on the pull request:

    https://github.com/apache/cordova-lib/pull/266#issuecomment-126740006
  
    @TimBarham , I've explored that possibility before landing with the current 
solution.
    I think messing around with a queue-based solution or the event loop is 
going to take more time and more testing.
    My goal is to have this issue fixed and checked in ASAP since it impacts 
such a basic scenario.
    
    I can revisit making the change to npmhelper in the future. we can even go 
ahead and create another JIRA bug to track that refactoring, but I don't think 
it should stop us from moving forward with the fix to this issue.


> Restoring multiple platforms fails
> ----------------------------------
>
>                 Key: CB-9278
>                 URL: https://issues.apache.org/jira/browse/CB-9278
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: CordovaLib
>    Affects Versions: Master
>         Environment: OS X
>            Reporter: Dmitry Blotsky
>            Assignee: Omar Mefire
>              Labels: cordova-lib, platform, restore, save
>   Original Estimate: 48h
>  Remaining Estimate: 48h
>
> 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:
> {noformat}
> Error: Trying to initialize npm when settings have not been restored from a 
> previous initialization.
> {noformat}
> Running {{cordova prepare}} again fixes the issue.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to