Can’t complete install steps in “Chapter 2: Getting Everything Installed”

I’m on Ununtu 14.04 machine, node v0.10.25 installed fine

I have a problem when I get to $ ionic start todo blank. I get an error saying my version of cordova is too old, and that I should update it. So I do. And I just get the same thing again.

Can anyone help me?

How did you update cordova? Did you update with npm?
Run this and see which version of cordova do you have in your machine:

cordova -v

Somehow I solved this problem. The version of cordova is 3.5.0-0.2.6 - that is the latest now.

But i got another one problem with the next step in the manual: ionic platform ios
There is my console log on it:

add platform ios
Creating ios project…
/home/dmitriy/.cordova/lib/ios/cordova/3.5.0/bin/create: 33: /home/dmitriy/.cordova/lib/ios/cordova/3.5.0/bin/create: Syntax error: “(” unexpected
Error: /home/dmitriy/.cordova/lib/ios/cordova/3.5.0/bin/create: Command failed with exit code 2
at ChildProcess.whenDone (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/cordova/superspawn.js:135:23)
at ChildProcess.EventEmitter.emit (events.js:98:17)
at maybeClose (child_process.js:743:16)
at Process.ChildProcess._handle.onexit (child_process.js:810:5)
Unable to add platform ios.

It isn’t work with android platform too.

It’s strange too, yesterday i also installed Phonegap, which uses cordova too, and it works without any problems.

You can’t install ios platform on Ubuntu cause to add ios platform to your project you need the iOS SDK that only have for Mac OS, that’s why you can’t add ios to your platforms.

I have exactly this problem. How did you fix it?