zoltan-mihalyi opened a new issue #866:
URL: https://github.com/apache/cordova-lib/issues/866


   # Bug Report
   
   ## Problem
   When dependencies and devDependencies are both present, running `cordova 
prepare` installs the wrong platform version.
   
   ### What is expected to happen?
   `Using cordova-fetch for [email protected]` is printed
   
   
   ### What does actually happen?
   `Using cordova-fetch for [email protected]` is printed
   
   ## Information
   <!-- Include all relevant information that might help understand and 
reproduce the problem -->
   
   ### Environment, Platform, Device
   the relevant part of my package.json:
   
   ```json
   {
     "devDependencies": {
       "cordova-electron": "2.0.0"
     },
     "dependencies": {
       "cordova-plugin-googleplus": "8.5.1"
     },
     "cordova": {
       "plugins": {
         "cordova-plugin-googleplus": {}
       },
       "platforms": [
         "electron"
       ]
     }
   }
   ```
   
   
   ### Solution
   
   I managed to find the problem in this line:
   
https://github.com/apache/cordova-lib/blob/master/src/cordova/platform/addHelper.js#L102
   
   If "dependencies" exists, the code skips the devDependencies.
   
   ### Version information
   [email protected]
   <!-- 
   What are relevant versions you are using?
   For example:
   Cordova: Cordova CLI, Cordova Platforms, Cordova Plugins 
   Other Frameworks: Ionic Framework and CLI version
   Operating System, Android Studio, Xcode etc.
   -->
   
   
   
   ## Checklist
   <!-- Please check the boxes by putting an x in the [ ] like so: [x] -->
   
   - [x] I searched for existing GitHub issues
   - [x] I updated all Cordova tooling to most recent version
   - [x] I included all the necessary information above
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]



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

Reply via email to