
上QQ阅读APP看书,第一时间看更新
Installing Appium
Appium requires macOS X 10.7 or a higher version; we would recommend 10.10 (Yosemite) or a later version. To work with Appium, we need both the Appium GUI app (installed via the .dmg file) and the Appium server (installed via Homebrew), as explained here:
- Install Xcode and the Xcode command-line tool.
- Download the appium.dmg file from https://bitbucket.org/appium/appium.app/downloads/.
- Install Homebrew (http://brew.sh/) on your machine. This will need Ruby to be installed on your machine. Run the below command to install Homebrew:
Homebrew is a package manager for Mac OS. It installs packages to their own directories and then symlinks their files into /usr/local.
/usr/bin/ruby -e "$(curl -fsSL
https://raw.githubusercontent.com/Homebrew/install/master/install)"
- Post the install run command to ensure that Homebrew is up to date:
brew update
- To install node on your machine, run this command:
brew install node
- Once the preceding commands are executed and don't throw up any errors, we can run one final command to check the successful Node and npm install. Run the below command to check the successful installation (of Node and npm) and this should successfully install grunt-cli:
Node.js is an open source, cross-platform JavaScript runtime environment for developing a diverse variety of tools and applications.
npm is the default package manager for the JavaScript runtime environment Node.js.
npm is the default package manager for the JavaScript runtime environment Node.js.
- To install Appium server and Appium doctor using node, we can run the given command:
npm install -g appium
npm install -g appium-doctor
- Once Appium doctor is installed, we can run the appium-doctor command in the terminal and see the following output:

- Once done, we can run the appium command in the terminal and see this output:

So, the preceding section completes the Appium setup on both the app and the server. However, we can also install Appium server from source.