You may not have the required environment or OS to build this project

Just remove and add the platform [android or ios]

sudo ionic platform remove android
then
sudo ionic platform add android

its done !!