Skip to content

The advanced way to install appium

Larry Cao edited this page May 27, 2013 · 4 revisions

If you want to modify Appium source code. You must take full control of the installation process. This will allow you to:

  1. Modify Appium server source code
  2. Understand how Appium works

For Appium to works you need:

  1. Nodejs
  2. Appium server
  3. Mocha & Grunt modules

Install nodejs:

Homebrew is the best way to install node since it doesn't then require sudo privs later on.

brew install node

Install appium server:

  1. Option 1 - Github:
    • Clone appium project: git clone https://github.com/appium/appium.git
    • Run ./reset.sh --dev in the new appium directory
    • Run node server.js to launch appium
  2. Option 2 - Node Package Module (npm):
    • npm install -g appium
    • This command will download and create appium project folder globally
    • cd /usr/local/bin/
    • ln -s /path/to/appium/app/bin.js appium
    • Run appium to launch appium

Install mocha & grunt modules:

  • npm install -g mocha
  • npm install -g grunt-cli

Congratulation, you are done! And now you can run appium server by CLI and test your script Here is the simple example for you to play:

mkdir appium-test && cd appium-test
npm install wd
curl -O https://raw.github.com/appium/appium/master/sample-code/examples/node/simplest.js
appium &
node simplest.js