Events.js:85 throw er; // Unhandled 'error' event ^ Error: spawn convert ENOENT


I just update to ionic 1.6.1 and and cordova 5.1.1, when execute any of the following:

ionic platform add android/ios
cordova platform add android/ios

And it’s throwing the following errors:

Checking Project & Icon

✓ platforms found: ios
✓ icon.png exists
✓ config.xml exists

Generating Icons for ios

throw er; // Unhandled ‘error’ event
Error: spawn convert ENOENT
at exports._errnoException (util.js:746:11)
at Process.ChildProcess._handle.onexit (child_process.js:1053:32)
at child_process.js:1144:20
at process._tickCallback (node.js:355:11)
Error: Hook failed with error code 1: /Users/jefflu/git_repo/sandbox/ionic/showtime/hooks/after_prepare/
at /usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/hooks/HooksRunner.js:195:23
at _rejected (/usr/local/lib/node_modules/cordova/node_modules/q/q.js:797:24)
at /usr/local/lib/node_modules/cordova/node_modules/q/q.js:823:30
at Promise.when (/usr/local/lib/node_modules/cordova/node_modules/q/q.js:1035:31)
at Promise.promise.promiseDispatch (/usr/local/lib/node_modules/cordova/node_modules/q/q.js:741:41)
at /usr/local/lib/node_modules/cordova/node_modules/q/q.js:557:44
at flush (/usr/local/lib/node_modules/cordova/node_modules/q/q.js:108:17)
at process._tickCallback (node.js:355:11)

Was working fine with the previous ionic 1.5.0

You should contact the author of cordova-icon or stop using it.

I bet you don’t have imagemagick installed. Try after installing it. cordova-icon and cordova-splash needs it.