官方推荐的安装方式安装失败,所以这里使用了源码安装,测试成功
需要先安装npm
安装cnpm
npm install -g cnpm --registry=https://registry.npm.taobao.org
下载源代码并安装
git clone https://github.com/appium/appium.git
cd appium # 进入appium源码目录
cnpm install # 执行安装
用cnpm link命令将appium link到系统,可以忽略warn
cnpm link
查看安装结果,至此安装完成
appium -v