一、安装node.js
1、在本站下载node.js

2、获取到安装文件后,直接双击安装文件,根据程序的提示,完成nodejs的安装。
3、安装完成后,运行cmd,输入node –v,如果安装成功,会输出如下版本信息:

二、配置Android sdk环境
1、sdk环境配置
2、确保安装了 Level 17 或以上的版本 api
3、设置 ANDROID_HOME 系统变量为你的 Android SDK 路径
F:Program Files (x86)Androidandroid-sdk

4、把 tools 和 platform-tools 两个目录加入到系统的 Path 路径里
F:Program Files (x86)Androidandroid-sdkplatform-tools;F:Program Files (x86)Androidandroid-sdktools

三、安装手机驱动并测试连接真机
完成上述步骤以后,为了能够让手机连接到PC端进行真机测试。还需要安装测试手机对应的驱动程序。根据手机型号提前下载相应的离线驱动并安装,之后将手机与PC通过usb线相连。在cmd中输入以下命令,如果能够看到设备,则表示安装成功。

四、安装Appium
1.下载安装文件
2.直接双击appium-installer.exe文件安装就好,桌面会生成一个appium的图标

3.把node_modules的bin目录放到系统的Path路径里
C:Program Files (x86)Appiumnode_modules.bin

4.检查appium所需的环境是否OK:
进入cmd命令行,输入appium-doctor ,出现以下提示,All Checks were successful ,说明环境成功。
