Failed to start an Appium session, err was: Error: spawn ENOENT

HI All,

I’m not able to run my iOS application on real device. Appium is giving me an error “Failed to start an Appium session, err was: Error: spawn ENOENT”.
Please suggest How can I resolve this?

Thanks,
Meenal

Are you getting this error after you updated to Appium 1.2.2 release? If so, then this post might help :

https://github.com/appium/appium/issues/3503

If not, can you post detailed logs so that we can get a better understanding of the error?

Yes,issue raised after upgrading appium to 1.2.2(Cygnus). I’m using appium on mac,so Can you please let me know the path of node_modules directory you’re talking about as I see there are many node_moduel directories on my system?

You need to traverse to this path :

 cd /usr/local/lib/node_modules/appium/build/deviceconsole/ 

There can be only one node_modules folder in the lib folder.

there is no appium inside node_modules. Why is that so?