How to setup Environments for build ionic app?

I started doing ionic mobile App… I struggle with environment setup and also OS. Can Anyone explain me how I start doing my work.

As for as I know, you need not to set anything manually. For adding your a platform you can use

ionic cordova platform add platform name

During my ionic installation itself get errored

What error you got? And on what attempt you got error?

Please explain in brief.

If you got error in ionic installation itself, please do the following.

Uninstall everything first.

Install the latest version of node.js from

After that, run the command npm install -g cordova ionic

Then run ionic start appname tabs/blank/sidemenu

Surprise, the documentation includes everything you need to know: