Error while start and add platform

I’m getting this errors when i tired to create the app and then adding the android platform, i hope you can help me

cristian@Crstn:~$ ionic start myApp tabs
Creating Ionic app in folder /home/cristian/myApp based on tabs project

Downloading: https://github.com/driftyco/ionic-app-base/archive/master.zip
[=============================] 100% 0.0s

Downloading: https://github.com/driftyco/ionic-starter-tabs/archive/master.zip
[=============================] 100% 0.0s

Update config.xml
Initializing cordova project.
Fetching plugin “org.apache.cordova.device” via plugin registry
Error: EACCES, mkdir '/home/cristian/tmp/npm-21696-2X8TjuN9’
Unable to add plugins. Perhaps your version of Cordova is too old. Try updating (npm install -g cordova), removing this project folder, and trying again.

///////////////////////
in another topic here, i read that you can go to the folder of the app just created and execute this instruction so i did that

cristian@Crstn:~$ cd myApp
cristian@Crstn:~/myApp$ cordova plugin add https://git-wip-us.apache.org/repos/asf/cordova-plugin-device.git
Fetching plugin “https://git-wip-us.apache.org/repos/asf/cordova-plugin-device.git” via git clone

cristian@Crstn:~/myApp$ ionic platform add android
Creating android project…

/home/cristian/.cordova/lib/android/cordova/3.5.0/bin/node_modules/q/q.js:126
throw e;
^
Error: An error occurred while listing Android targets
at /home/cristian/.cordova/lib/android/cordova/3.5.0/bin/lib/check_reqs.js:87:29
at _rejected (/home/cristian/.cordova/lib/android/cordova/3.5.0/bin/node_modules/q/q.js:808:24)
at /home/cristian/.cordova/lib/android/cordova/3.5.0/bin/node_modules/q/q.js:834:30
at Promise.when (/home/cristian/.cordova/lib/android/cordova/3.5.0/bin/node_modules/q/q.js:1079:31)
at Promise.promise.promiseDispatch (/home/cristian/.cordova/lib/android/cordova/3.5.0/bin/node_modules/q/q.js:752:41)
at /home/cristian/.cordova/lib/android/cordova/3.5.0/bin/node_modules/q/q.js:574:44
at flush (/home/cristian/.cordova/lib/android/cordova/3.5.0/bin/node_modules/q/q.js:108:17)
at process._tickCallback (node.js:415:13)
Error: /home/cristian/.cordova/lib/android/cordova/3.5.0/bin/create: Command failed with exit code 8
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)
Error from platform command.

platform [options] … Add platform target for building an Ionic app

any ideas?

if you using mac. you should be add your adt-bundle(Android SDK) to your PATH. add to .bash_profile.
if you using linux/ubuntu add/edit to .bashrc
if all done. try to install Ant(Apache_ant). in mac use homebrew with command brew install ant

check this documentation Cordova/phonegab docs

thank you, it seems like the problem were the path and the node.js version
here is a tutorial to install cordova properly