appium1安装

今天把mac的系统重新装。系统升级为10.11.6。xcode版本为7.3.1。

一切准备妥当,开始appium的安装调试之路。

我安装的是图形界面的appium。版本是1.5.3。

安装完成后,马上进行第一次诊断appium-doctor。


Last login: Fri Sep 30 00:50:02 on console

'/Applications/Appium.app/Contents/Resources/node/bin/node' '/Applications/Appium.app/Contents/Resources/node_modules/appium-doctor/appium-doctor.js'

lunamagicdeMini:~ lunamagic$ '/Applications/Appium.app/Contents/Resources/node/bin/node' '/Applications/Appium.app/Contents/Resources/node_modules/appium-doctor/appium-doctor.js'

info AppiumDoctor ### Diagnostic starting ###

info AppiumDoctor  Xcode is installed at: /Applications/Xcode.app/Contents/Developer

WARN AppiumDoctor  Xcode Command Line Tools are NOT installed!

info AppiumDoctor  DevToolsSecurity is enabled.

info AppiumDoctor  The Authorization DB is set up properly.

[TypeError: Cannot read property 'replace' of undefined]


在终端输入

xcode-select --install

自动弹出xcode的安装界面


安装完成以后,运行appium-doctor

xcode command Line Tools are NOT installed 错误消失了。但是type error还是存在。

网上查询了一下,本来这句话应该是

The Node.js binary was found at: /usr/local/bin/node

感觉就是nodejs没有安装,虽然资料上说appium.dmg安装会自动安装nodejs的,可能是误传。

在终端中输入 node --version,没有现实node的版本,果然是没有安装。

遇上马上开始去安装node。网上显示通过brew安装比较快,其实我一直安装brew失败,应该不是被墙的关系,我总是下载到一半就失败了。

后来还是直接去node官网上去,在官网上之直接下载可以在mac上安装pkg 文件。下载好以后安装。

再次运行appium-doctor

unamagicdeMini:~ lunamagic$ '/Applications/Appium.app/Contents/Resources/node/bin/node' '/Applications/Appium.app/Contents/Resources/node_modules/appium-doctor/appium-doctor.js'

info AppiumDoctor ### Diagnostic starting ###

info AppiumDoctor  Xcode is installed at: /Applications/Xcode.app/Contents/Developer

info AppiumDoctor  Xcode Command Line Tools are installed.

info AppiumDoctor  DevToolsSecurity is enabled.

info AppiumDoctor  The Authorization DB is set up properly.

info AppiumDoctor  The Node.js binary was found at: /usr/local/bin/node

info AppiumDoctor  HOME is set to: /Users/lunamagic

WARN AppiumDoctor  ANDROID_HOME is NOT set!

WARN AppiumDoctor  JAVA_HOME is NOT set!

WARN AppiumDoctor  adb could not be found because ANDROID_HOME is NOT set!

WARN AppiumDoctor  android could not be found because ANDROID_HOME is NOT set!

WARN AppiumDoctor  emulator could not be found because ANDROID_HOME is NOT set!

info AppiumDoctor ### Diagnostic completed, 5 fixes needed. ###

info AppiumDoctor 

info AppiumDoctor ### Manual Fixes Needed ###

info AppiumDoctor The configuration cannot be automatically fixed, please do the following first:

WARN AppiumDoctor - Manually configure ANDROID_HOME.

WARN AppiumDoctor - Manually configure JAVA_HOME.

WARN AppiumDoctor - Manually configure ANDROID_HOME and run appium-doctor again.

info AppiumDoctor ###

info AppiumDoctor 

info AppiumDoctor Bye, run appium-doctor again when the all the manual fixes have been applied!

info AppiumDoctor 


因为apppium运行ios只需要检查到node就可以了。下面显示 ANDROID_HOME is NOT set暂时就不去配置了。

终于在忙了3个小时后,把appium给安装好了。今天就先到这里,明天继续。



 





评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值