欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

mac安装appium时执行appium-doctor命令提示command not found: appium-doctor

程序员文章站 2022-07-12 21:17:24
...

今天安装appium,最后执行appium-doctor命令检查文件时一直报错:command not found: appium-doctor。

 mac安装appium时执行appium-doctor命令提示command not found: appium-doctor

百度了一圈也没解决,看到一个教程说要安装一下appium-doctor,参考文档:https://www.jianshu.com/p/796a68ef3204

于是我执行了这个命令:

npm install appium-doctor

然后兴高采烈又去执行了appium-doctor,结果还是不行……

又一搜,奥,可以试试全局安装呐!参考文档:https://www.jianshu.com/p/f797f79f2ff4

好嘞,试试~

npm install -g appium-doctor

结果又报错了,不开心……

mac安装appium时执行appium-doctor命令提示command not found: appium-doctor

又一顿百度,让用cnpm install,行吧再试试,结果又error了,一看是权限的问题,管他三七二十一

mac安装appium时执行appium-doctor命令提示command not found: appium-doctor

执行了这个命令:

sudo cnpm install -g appium-doctor

诶,可以了……

相关标签: appium 软件测试