Setup Maven (Download and set Bash profile PATH for Maven): In your bash add the following path using following format: export PATH=$HOME/local/bin:$PATH
JAVA 6 for Mac OS has to be downloaded from Apple’s support page: What you will need to do is to set CHMOD to 777 to the directories where components of Appium are trying to write while installing and then rerun all steps again. If you face some errors while creating or saving data into certain directories, that is caused by the luck of write permissions set to those directories. There could be one problem while setting up Appium using bellow steps. My steps make it possible to install and setup Appium the right way without need to use SUDO for installation. Appium will not run if NODE or Appium itself is installed using SUDO and MAC won’t let you install neither without using SUDO. I hope this quick guide will help the next engineer to save some time on setting up Appium to run automation on Android devices. I have been looking for the answer everywhere on the internet and could not find anything. Tutorials written by developers of Appium are so vague, I don’t even want to recommend to look for answers on their website. I wish there were more clear step by step tutorials online for Appium. Just copy and paste commands into Terminal on your Mac and you will set it up.
Below is the step by step instruction on how to set up Appium on Mac OS and run a first test from within a Java Class. Trying to search online for solution took me quite a while since there are almost no tutorials exist online for Appium to run on MAC while developing tests using JAVA. After installing it all with SUDO, then trying to run Appium, I was getting error that Appium and NODE should have been installed without SUDO. I could not find a way to install required components for Appium without using SUDO. Problem I was facing with Appium that I decided myself below.