How to install appium - rotati/wiki GitHub Wiki
How To Install Appium
Requirements
If you want to run Appium via an npm install, hack with or contribute to Appium, you will need node.js and npm 4 or greater (recommend the latest stable version).
Install Appium
$ npm install -g appium
To ensure that your system is set up properly you can use appium-doctor. Install it with npm install -g appium-doctor (or run it from source), then run appium-doctor and supply the --ios or --android flags to verify that all of the dependencies are set up correctly.
$ npm install -g appium-doctor
$ appium-doctor
To run appium server
$ appium