Error when building IONIC/PHONEGAP

Asked

Viewed 116 times

2

I use a Mac, tried to give the sudo Ionic build Ios commands / 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)

1 answer

1

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

Vlw

Browser other questions tagged

You are not signed in. Login or sign up in order to post.