Skip to content

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

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

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions