Skip to content

ionic info only lists Cordova platforms if Cordova CLI is installed #3443

Closed

Description

@janpio

Before:

λ ionic info

Ionic:

   ionic (Ionic CLI)  : 4.0.1 (C:\nvm\v8.11.3\node_modules\ionic)
   Ionic Framework    : ionic-angular 3.5.3
   @ionic/app-scripts : 2.0.2

Cordova:

   cordova (Cordova CLI) : not installed
   Cordova Platforms     : none

System:

   Android SDK Tools : 26.1.1
   NodeJS            : v8.11.3 (C:\Program Files\nodejs\node.exe)
   npm               : 5.6.0
   OS                : Windows 10

Environment:

   ANDROID_HOME : C:\Android

Then install CLI:

λ npm install cordova -g
C:\Program Files\nodejs\cordova -> C:\Program Files\nodejs\node_modules\cordova\bin\cordova
+ cordova@8.0.0
added 415 packages in 27.249s

Then new output:

λ ionic info

Ionic:

   ionic (Ionic CLI)  : 4.0.1 (C:\nvm\v8.11.3\node_modules\ionic)
   Ionic Framework    : ionic-angular 3.5.3
   @ionic/app-scripts : 2.0.2

Cordova:

   cordova (Cordova CLI) : 8.0.0
   Cordova Platforms     : .git, android 6.2.3, ios 4.4.0

System:

   Android SDK Tools : 26.1.1
   NodeJS            : v8.11.3 (C:\Program Files\nodejs\node.exe)
   npm               : 5.6.0
   OS                : Windows 10

Environment:

   ANDROID_HOME : C:\Android

Does this make sense? Is the CLI required for getting the list of installed platforms?

Activity

  1. imhoffd commented on Jul 30, 2018

    @imhoffd
    Contributor

    It is required, unfortunately. We use cordova platforms ls

  2. janpio commented on Jul 30, 2018

    @janpio
    ContributorAuthor

    Ok. Then maybe change to "none" to "not available" or something similar?

  3. imhoffd commented on Jul 30, 2018

    @imhoffd
    Contributor

    For sure. That'd be better than "none".

  4. imhoffd commented on Jul 30, 2018

    @imhoffd
    Contributor

    Why does it list .git for you? I've never seen that. Is that listed in the output of cordova platforms ls?

  5. janpio commented on Jul 30, 2018

    @janpio
    ContributorAuthor

    I have /platforms and /plugins under git version control, which is why this folder exists. Cordova CLI can't handle that and lists it as a platform :/

  6. imhoffd commented on Jul 30, 2018

    @imhoffd
    Contributor

    😢

  7. janpio commented on Jul 30, 2018

    @janpio
    ContributorAuthor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions