ionic-team / ionic-cli

The Ionic command-line interface
MIT License
2k stars 651 forks source link

CLI reports "Cordova Platforms : none" although platforms are installed #3046

Open janpio opened 6 years ago

janpio commented 6 years ago

I noticed more and more posts in the forum that do include ionic info output to report "Cordova Platforms : none": https://forum.ionicframework.com/search?q=%22cordova%20platforms%22%20none%20order%3Alatest

See these two posts for a good example: https://forum.ionicframework.com/t/windows-10-sdk-missing/126215/3 https://forum.ionicframework.com/t/windows-10-sdk-missing/126215/5

So while ionic info is reporting that no platforms are installed, in reality there are platforms already added to the project which can be seen from the ionic cordova platform list output.

imhoffd commented 6 years ago

Odd, I use cordova platform list and parse the result: https://github.com/ionic-team/ionic-cli/blob/master/packages/@ionic/cli-utils/src/lib/integrations/cordova/index.ts#L121-L129

I noticed with those ionic info outputs either it doesn't detect that Cordova is installed or it's Cordova 8.

janpio commented 6 years ago

Well, here I have a case where the Cordova CLI version is missing - with CLI 7.1.0: https://forum.ionicframework.com/t/cant-deploy-ionic-app-on-android-device/126238/3 https://forum.ionicframework.com/t/cant-deploy-ionic-app-on-android-device/126238/5