I tried to create a new Ionic project and when I launched the command:
ion platform add ios
At the end, I got the following error:
Running the command: / Users / nnation / myApp / hooks / after _prepare / 010_add_platform_class.js / Users / nnation / myApp Error: spawn EACCES at export._errnoException (util.js: 746: 11) in ChildProcess.spawn (child_process.js: 1162: 11) in Object.exports.spawn (child_process.js: 995: 9) in Object.exports.spawn (/ usr / local / lib / node_modules / cordova / node_modules / cordova-lib / src / cordova / superspawn.js : 100: 31) on runScriptViaChildProcessSpawn (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/hooks/HooksRunner.js:188:23) in runScript (/ usr / local / lib / node_modules / cordova /node_modules/cordova-lib/src/hooks/HooksRunner.js:131:16) on / usr / local / lib / node_modules / cordova / node_modules / cordova-lib / src / hooks / HooksRunner.js: 114: 20 on _fulfilled (/usr/local/lib/node_modules/cordova/node_modules/q/q.js:787:54) on self.promiseDispatch.done (/usr/local/lib/node_modules/cordova/node_modules/q/q.js: 816: 30) in Promise.promise .promiseDispatch (/usr/local/lib/node_modules/cordova/node_modules/q/q.js:749:13)
I'm not sure what it is, so I ran it again and I got the following:
$ sudo ionic platform add ios works with cordova add ios platform Added ios platform.
Thinking that everything was fine, I ran:
$ sudo ionic build ios
And again this will happen again:
running cordova build ios Running the command: / Users / nnation / myApp / hooks / after _prepare / 010_add_platform_class.js / Users / nnation / myApp Error: spawn EACCES at export._errnoException (util.js: 746: 11) in ChildProcess.spawn ( child_process.js: 1162: 11) in Object.exports.spawn (child_process.js: 995: 9) in Object.exports.spawn (/ usr / local / lib / node_modules / cordova / node_modules / cordova-lib / src / cordova /superspawn.js:100:31) on runScriptViaChildProcessSpawn (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/hooks/HooksRunner.js:188:23) in runScript (/ usr / local / lib /node_modules/cordova/node_modules/cordova-lib/src/hooks/HooksRunner.js:131:16) on / usr / local / lib / node_modules / cordova / node_modules / cordova-lib / src / hooks / HooksRunner.js: 114 : 20 on _fulfilled (/usr/local/lib/node_modules/cordova/node_modules/q/q.js:787:54) on self.promiseDispatch.done (/ usr / local / lib / node_modules / cordova / node_modules / q / q .js: 816: 30) in Promise.promise.promiseDispatch (/usr/local/lib/node_modules/cordova/node_modules/q/q.js:749:13)
Can someone help me determine what is wrong or what I am missing? I am running MacOS.
source share