IONIC / PHONEGAP build error

2

I use a Mac, I tried to give the commands sudo ionic build ios / sudo ionic build android, however, I get the error below:

  

Error: spawn EACCES       at exports._errnoException (util.js: 746: 11)       at ChildProcess.spawn (child_process.js: 1162: 11)       at Object.exports.spawn (child_process.js: 995: 9)       at Object.exports.spawn (/usr/local/lib/node_modules/phonegap/node_modules/cordova/node_modules/cordova-lib/src/cordova/superspawn.js:104:31)       at runScriptViaChildProcessSpawn (/usr/local/lib/node_modules/phonegap/node_modules/cordova/node_modules/cordova-lib/src/hooks/HooksRunner.js:188:23)       at runScript (/usr/local/lib/node_modules/phonegap/node_modules/cordova/node_modules/cordova-lib/src/hooks/HooksRunner.js:131:16)       at /usr/local/lib/node_modules/phonegap/node_modules/cordova/node_modules/cordova-lib/src/hooks/HooksRunner.js:114:20       at _fulfilled (/usr/local/lib/node_modules/phonegap/node_modules/cordova/node_modules/q/q.js:787:54)       at self.promiseDispatch.done (/usr/local/lib/node_modules/phonegap/node_modules/cordova/node_modules/q/q.js:816:30)       at Promise.promise.promiseDispatch (/usr/local/lib/node_modules/phonegap/node_modules/cordova/node_modules/q/q.js:749:13)

    
asked by anonymous 15.04.2015 / 22:32

1 answer

1

I found the error, I was missing the ANT and it was in the API 22 not in the 21, I just removed the 22 and installed the 21 and added the ANT

Vlw

    
15.04.2015 / 23:52