我在ubuntu 13.10上運行,我已經安裝了使用npm的科爾多瓦(如果這有所作爲)。當我創建一個項目,然後嘗試運行cordova platform add android
我得到以下錯誤:錯誤試圖添加Android平臺到科爾多瓦
/home/user/.cordova/lib/android/cordova/3.4.0/bin/node_modules/q/q.js:126
throw e;
^
Error: ERROR : executing command 'ant', make sure you have ant installed and added to your path.
at /home/user/.cordova/lib/android/cordova/3.4.0/bin/lib/check_reqs.js:47:27
at ChildProcess.exithandler (child_process.js:641:7)
at ChildProcess.EventEmitter.emit (events.js:98:17)
at maybeClose (child_process.js:743:16)
at Socket.<anonymous> (child_process.js:956:11)
at Socket.EventEmitter.emit (events.js:95:17)
at Pipe.close (net.js:465:12)
Error: /home/user/.cordova/lib/android/cordova/3.4.0/bin/create: Command failed with exit code 8
at ChildProcess.whenDone (/usr/lib/node_modules/cordova/src/superspawn.js:112: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)
POS sible的副本[Cordova在Ubuntu中添加平臺錯誤](http://stackoverflow.com/questions/22191106/cordova-add-platform-error-in-ubuntu) –
請按照下面給出的步驟操作:http://goo.gl/r9lJnx –