You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by GitBox <gi...@apache.org> on 2019/10/01 08:26:05 UTC

[GitHub] [cordova-android] ctfrancia opened a new issue #835: Failed to fetch platform cordova-android@^8.0.0 - Cannot read property 'match' of undefined

ctfrancia opened a new issue #835: Failed to fetch platform cordova-android@^8.0.0 -  Cannot read property 'match' of undefined
URL: https://github.com/apache/cordova-android/issues/835
 
 
   # Bug Report
   
   ## Problem
   when running `$ cordova platform add android` I get the error:
   ```
   Using cordova-fetch for cordova-android@^8.0.0
   Failed to fetch platform cordova-android@^8.0.0
   Probably this is either a connection problem, or platform spec is incorrect.
   Check your connection and platform name/version/URL.
   Error: npm: Command failed with exit code 1 Error output:
   npm ERR! Cannot read property 'match' of undefined
   
   npm ERR! A complete log of this run can be found in:
   npm ERR!     /Users/c.francia/.npm/_logs/2019-10-01T08_10_12_545Z-debug.log
   ```
   I use yarn and not npm. I know that npm is a dependency of yarn, not sure if this matters or not.
   
   Also I know there have been issues on github regarding this (but that person was having dependency issues) and there was one on SO [here](https://stackoverflow.com/questions/35451207/cordova-error-failed-to-fetch-platform-android/35743471#35743471) but the issue was a version problem, not `npm ERR! Cannot read property 'match' of undefined`
   
   ### What is expected to happen?
   to add the platform @^8.0.0
   
   
   ### What does actually happen?
   gives the error error mentioned above
   
   
   ## Information
   <!-- Include all relevant information that might help understand and reproduce the problem -->
   
   [photo of the Android Studio SDK](https://imgur.com/Zm2phkc)
   
   ### Command or Code
   <!-- What command or code is needed to reproduce the problem? -->
   `$ cordova platform add android`
   
   
   ### Environment, Platform, Device
   <!-- In what environment, on what platform or on which device are you experiencing the issue? -->
   
   
   
   ### Version information
   <!-- 
   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.
   -->
   ```
   Ionic:
   
      Ionic CLI                     : 5.4.1 (/Users/c.francia/.config/yarn/global/node_modules/ionic)
      Ionic Framework               : @ionic/angular 4.10.0
      @angular-devkit/build-angular : 0.801.3
      @angular-devkit/schematics    : 8.3.6
      @angular/cli                  : 8.1.3
      @ionic/angular-toolkit        : 2.0.0
   
   Cordova:
   
      Cordova CLI       : 9.0.0 (cordova-lib@9.0.1)
      Cordova Platforms : none
      Cordova Plugins   : cordova-plugin-ionic-keyboard 2.2.0, cordova-plugin-ionic-webview 4.1.2, (and 17 other plugins)
   
   Utility:
   
      cordova-res : 0.6.0 
      native-run  : 0.2.7 (update available: 0.2.8)
   
   System:
   
      NodeJS : v12.7.0 (/usr/local/lib/node_modules/node/bin/node)
      npm    : 6.11.3
      OS     : macOS Mojave
      Xcode  : Xcode 10.3 Build version 10G8
   ```
   
   
   ## 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:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org