Error from platform command

Hello everyone,
am new to ionic,after installing ionic i had an error while starting creating my first app
it said error from platform command add a platform target for building an ionic app.
Please help…

This is a cordova requirement. You have to add a platform, meaning you have to declare if you plan to export to ios or android, before you can emulate or build the project. This takes care of generating the base project assets needed for the specific platform you choose to use. Use one of the commands to add a platform, and then you can build or emulate it.

ionic platform add ios
ionic platform add android