New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow starting Appium.app from commandline without global install of nodejs #793
Conversation
…on machine without a global nodejs install.
I would suggest having an array of possible node locations and loop through them in order using |
the proper way to do this is with applescript. There is a node path property on Appium.app (for those who don't put i in the applications folder) jlipps already does this somewhere else in the same file |
var appScript = [ |
Yeah... that code is in there... it doesn't work when running Appium.app from the command line. |
Is the consensus to merge this or not? It sounds like there are better ways to fix the issue. |
I don't think we can hardcoe a guess to the /Application folder, that assumes that's where people put it, which often they don't we should correct this diff to use AppleScript and let LaunchServices find Appium.app |
That sounds good to me. |
+1 on using applescript if that's more robust. Will that work @tokunbo? |
@jlipps It already looks to me that it doesn't work. My little code addition is only reached after the failure of applescript and 2 hardcored paths. But, if there's something else that can be done that I'm not aware of, good times. I just need a way for Appium.app to allow me to start it via commandline without starting the Appium GUI, e.g.
Any fix that allows me to run Appium.app like the above is okay with me. ^_^ |
If you're trying to run stuff from the command line, why bother with appium.app at all? |
@jlipps |
Haha. Well it sounds like there's a much better solution out there for you, in the guise of installing a global node binary that works! I'd rather help you debug that at the hackathon on Monday than build this somewhat odd feature. |
penguinho with those ninja-closes. Well, probably my issues were related to me not understanding the difference between "npm install" versus "sudo npm install" versus "brew install node" versus installing nodejs.dmg or something... |
I recommend |
WIthout this code modification, Appium.app won't start from the commandline when the machine doesn't have nodejs globally installed. Instead you hit the exception about not being able to find node.