Running ionic cordova platform --help
command throws below error after giving out the available commands.
Add or remove a platform target for building an Ionic app
Usage $ ionic cordova platform [action] [platform]
Inputs action ................... add, remove, or update a platform; list all project platforms platform ................. The platform that you would like to add (e.g. ios, android)
Options --noresources, -r ........ Do not add default Ionic icons and splash screen resources (corres
ponds to add)
–nosave, -e … Do not update the config.xml (corresponds to add, remove, update)
Examples $ ionic cordova platform add android
TypeError: Cannot read property ‘private’ of undefined
at inputs.filter (/usr/local/lib/node_modules/ionic/node_modules/@ionic/cli-utils/dist/lib/comm
and/command.js:91:31)
at Array.filter (native)
at HelpCommand.getCleanInputsForTelemetry (/usr/local/lib/node_modules/ionic/node_modules/@ioni
c/cli-utils/dist/lib/command/command.js:90:18)
at HelpCommand. (/usr/local/lib/node_modules/ionic/node_modules/@ionic/cli-utils/dis
t/lib/command/command.js:63:48)
at Generator.next ()
at fulfilled (/usr/local/lib/node_modules/ionic/node_modules/@ionic/cli-utils/dist/lib/command/
command.js:4:58)