const appium = require('appium')
server = appium.main(myCapabilities);
Appium server starts on “127.0.0.1:{{myCapabilities.port}}/wd/hub”. It’s OK but my appium process using different Environment variables then mine. I can see it when I run command below
ps -wwE -p {{processID_of_Appium}}
The partitial output of command is
PATH=/usr/bin:/bin:/usr/sbin:/sbin
When I run command “echo $PATH”, I get output below
Is this running from command line or an IDE? If IDE, which one?
If command line, which shell? Also, how are you adding to your $PATH? For example you might add an 'export $PATH ’ statement to .bash_profile if you are using bash.
I deployed software using electron-packager. So, not from an IDE or terminal.
Additional info: If I run my code using terminal(npm start), appium process see my $PATH as “/Library/Java/JavaVirtualMachines/jdk-13.0.2.jdk/Contents/Home/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/Apple/usr/bin”.
I did a quick web search on this. According to this page you need to set the variables in .bashrc. You should do an ‘echo $SHELL’ on your command line to make sure you aren’t on ZSH (latest version of os x uses this) in which case you would want to put them in .zshrc.