Please do it this way:
npm uninstall -g ionic cordova
npm install -g ionic cordova
ionic start TestAppFoo blank
ionic cordova platform add ios
ionic cordova build ios
ionic info
The build ios
will probably return an error, please copy that over here. Also ionic info
of course. If it asks you to install some CLI plugin, do so.