Appium Device Farm安装教程

环境要求:Appium version ≥ 2.4.X

安装appium

bash 复制代码
npm install -g appium@2.11.3

如果安装提示如下问题

bash 复制代码
npm error code EEXIST
npm error syscall rename
npm error path /Users/wan/.npm/_cacache/tmp/d5787519
npm error dest /Users/wan/.npm/_cacache/content-v2/sha512/21/32/50fe213308630b7ac78404efb1133b7b1c84c1bac334e4e4966f706bced50b852c15ea912bd91afb2c521f061e8845b6b7d4f5ff360284305c2bb302c5fa
npm error errno EEXIST
npm error Invalid response body while trying to fetch https://registry.npmjs.org/@appium%2fschema: EACCES: permission denied, rename '/Users/wan/.npm/_cacache/tmp/d5787519' -> '/Users/wan/.npm/_cacache/content-v2/sha512/21/32/50fe213308630b7ac78404efb1133b7b1c84c1bac334e4e4966f706bced50b852c15ea912bd91afb2c521f061e8845b6b7d4f5ff360284305c2bb302c5fa'
npm error File exists: /Users/wan/.npm/_cacache/content-v2/sha512/21/32/50fe213308630b7ac78404efb1133b7b1c84c1bac334e4e4966f706bced50b852c15ea912bd91afb2c521f061e8845b6b7d4f5ff360284305c2bb302c5fa
npm error Remove the existing file and try again, or run npm
npm error with --force to overwrite files recklessly.
npm error A complete log of this run can be found in: /Users/wan/.npm/_logs/2024-10-09T03_45_44_421Z-debug-0.log

则删除/Users/wan/.npm/_cacache、/Users/wan/.npm/_logs目录和_update-notifier-last-checked文件

安装appium-device-farm

bash 复制代码
appium plugin install --source=npm appium-device-farm

激活

bash 复制代码
appium server -ka 800 --use-plugins=device-farm  -pa /wd/hub --plugin-device-farm-platform=android

然后访问http://localhost:4723/device-farm/

相关推荐
Code Man10 小时前
Windows 下使用 Appium
android·windows·appium
祉猷并茂,雯华若锦4 天前
Appium 3.x安卓按键与通知栏操作全指南
android·appium
祉猷并茂,雯华若锦6 天前
Appium 3.x实战:获取元素属性全解析
python·appium·自动化
祉猷并茂,雯华若锦7 天前
Appium 3.x安卓APP企业级安装实战
android·appium
祉猷并茂,雯华若锦9 天前
Appium 3.x 实战:元素定位与常见错误解析
开发语言·python·appium
进击的雷神18 天前
埋点skill使用与自动化
appium·自动化·埋点·codex·app自动化
测试开发-学习笔记1 个月前
安装appium
appium
one day3212 个月前
手机安装Appium Settings后闪退-最简单解决方式
appium
川石课堂软件测试2 个月前
UI自动化测试|CSS元素定位实践
css·测试工具·ui·fiddler·单元测试·appium·harmonyos