C/C++教程

安装appium-doctor

本文主要是介绍安装appium-doctor,对大家解决编程问题具有一定的参考价值,需要的程序猿们随着小编来一起学习吧!

安装 appium-doctor

appium-doctor可以检测Appium整体依赖环境配置情况。验证你的appium环境是否可以正常使用。
在cmd中输入:cnpm -g install appium-doctor
输入命令:appium-doctor 看到如下提示说明整体环境配置成功
C:\Users\llp>appium-doctor
info AppiumDoctor Appium Doctor v.1.16.0
info AppiumDoctor ### Diagnostic for necessary dependencies starting ###
info AppiumDoctor ✔ The Node.js binary was found at: C:\Program Files\nodejs\node.EXE
info AppiumDoctor ✔ Node version is 14.17.3
info AppiumDoctor ✔ ANDROID_HOME is set to: C:\Users\llp\Documents\android-sdk
info AppiumDoctor ✔ JAVA_HOME is set to: C:\Program Files\Java\jdk1.8.0_40
info AppiumDoctor Checking adb, android, emulator
info AppiumDoctor 'adb' is in C:\Users\llp\Documents\android-sdk\platform-tools\adb.exe
info AppiumDoctor 'android' is in C:\Users\llp\Documents\android-sdk\tools\android.bat
info AppiumDoctor 'emulator' is in C:\Users\llp\Documents\android-sdk\tools\emulator.exe
info AppiumDoctor ✔ adb, android, emulator exist: C:\Users\llp\Documents\android-sdk
info AppiumDoctor ✔ 'bin' subfolder exists under 'C:\Program Files\Java\jdk1.8.0_40'
info AppiumDoctor ### Diagnostic for necessary dependencies completed, no fix needed. ###
.......省略

info AppiumDoctor Bye! Run appium-doctor again when all manual fixes have been applied!
info AppiumDoctor

......
出现WARN警告没关系,不影响使用,如果出现error错误则环境有问题,会影响后续使用。
卸载appium-doctor
npm uninstall -g appium-doctor

这篇关于安装appium-doctor的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!