Ionic installation problem

I am very new to Ionic and facing some problems with it’s initial setup. When I try to run this command:
‘ionic build android’, I get a long list of errors for which I have attached a screenshot.

I have set the ANDROID_HOME environment variable as well. Please help.