我正在尝试在我的 Windows 系统上安装 uiautomator2 appium 驱动程序。我有 2.5.2 appium 和 10.5.2 npm 版本。尽管安装过程没有任何问题或错误,但即使重新启动后系统也看不到新驱动程序。
我使用这个命令:
npm i appium-uiautomator2-driver
控制台工作没有错误,最后给了我这个:
up to date, audited 688 packages in 27s
68 packages are looking for funding
run `npm fund` for details
found 0 vulnerabilities
我检查了
appium driver list
并得到了这个:
√ Listing available drivers
- uiautomator2 [not installed]
- xcuitest [not installed]
- mac2 [not installed]
- espresso [not installed]
- safari [not installed]
- gecko [not installed]
- chromium [not installed]
重新启动会带来相同的结果。
此时我非常迷失,因为我什至没有收到任何错误。我究竟做错了什么?任何帮助表示赞赏。
您应该使用 appium 而不是 npm 运行安装
appium驱动安装uiautomator2