Appium 1.5.2, unable to find node and appium.js path

@Priyank_Shah @pr4bh4sh @p00j4 @wreed @moizjv @jlipps

In the latest version of appium I could not find the exact path of node and appium.js to start appium programmatically. I am using Mac system to do launch appium via code.

In the previous version I can start appium via code without any error. In the working code I used following to get the node and appium.js path:

NodePATH: //usr//local//Cellar//node//5.4.0//bin//node
AppiumJSPATH: //usr//local//lib//node_modules//appium//bin//appium.js

Anyone have the idea about the NodePATH and AppiumJSPATH of latest (1.5.2) Appium?

Please share your comments.


String nodeJSPath = “/usr/local/bin/node”;
String appiumJSPath = “/usr/local/lib/node_modules/appium/build/lib/main.js”;

Try this this will work.

1 Like

I tried your solution…but no success.
Got below error:

io.appium.java_client.service.local.InvalidServerInstanceException: Invalid server instance exception has occured: It is probably there is the corrupted appium server installation. Path /usr/local/lib/node_modules/appium/build/lib/main.jsdoesn’t match /appium/bin/appium.js