gwhenne opened a new issue #215:
URL: https://github.com/apache/cordova-plugin-geolocation/issues/215


   # Bug Report
   
   ## Problem
   
   `cordova build` gets wrong version
   
   ### What is expected to happen?
   
   It should get the current version via npm, which is 4.1.
   
   ### What does actually happen?
   
   It gets version 4.0.2.
   
   ## Information
   
   From debug output of `cordova build`:
   ```
   No version specified for cordova-plugin-geolocation, retrieving version from 
config.xml
   No version for cordova-plugin-geolocation saved in config.xml or package.json
   Attempting to use npm info for cordova-plugin-geolocation to choose a 
compatible release
   Ignoring invalid version in cordova-plugin-geolocation cordovaDependencies: 
5.0.0 (must be a single version <= latest or an upper bound)
   Calling plugman.fetch on plugin "[email protected]"
   ```
   
   ### Command or Code
   In config.xml:
   ```
   <plugin name="cordova-plugin-geolocation" source="npm">
   ```
   Run
   ```
   cordova build android  --device --debug --verbose --nohooks-.
   ```
   
   ### Environment, Platform, Device
   Building on MacOs
   
   
   ### Version information
   ```
   Cordova Packages:
   
       cli: 10.0.0
           common: 4.0.2
           create: 3.0.0
           lib: 10.0.0
               common: 4.0.2
               fetch: 3.0.0
               serve: 4.0.0
   
   Project Installed Platforms:
   
       android: 9.0.0
   
   Project Installed Plugins:
   
       cordova-plugin-geolocation: 4.0.2
       cordova-plugin-splashscreen: 6.0.0
       cordova-plugin-statusbar: 2.4.3
       cordova-plugin-whitelist: 1.3.4
   
   Environment:
   
       OS: macOS Mojave 10.14.6 (18G6020) (darwin 18.7.0) x64
       Node: v12.18.3
       npm: 6.14.7
   ```
   
   
   ## 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