安装 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
原创文章,作者:bd101bd101,如若转载,请注明出处:https://blog.ytso.com/272511.html