Appium server版本更新-包括相关依赖更新及问题

xiaoxiao2021-02-28  18

更新Appium1.7.1到1.8.1 1. 命令行更新appium可能需要翻墙 2. 直接用命令:sudo npm install -g appium会出现错误: Error: EACCES: permission denied, mkdir '/usr/local/n/versions/node/10.4.0/lib/node_modules/appium/node_modules/appium-chromedriver/201858-3907-hybcas.w91wc' 更新appium命令换成下面的避免以上错误:

$ sudo npm install -g appium --unsafe-perm=true --allow-root

3. 错误信息:python2: command not found stack Error: Command failed: /user/path/.pyenv/shims/python2 -c import platform; print(platform.python_version());

stack pyenv: python2: command not found

解决办法:用python2所在目录下的python2可执行文件替换在/user/path/.pyenv/shims目录下的python2。

需要用到python2命令,确保python2能正常执行 $ python2 Python 2.7.13 (default, Jul 19 2017, 17:41:39) [GCC 4.2.1 Compatible Apple LLVM 8.1.0 (clang-802.0.42)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> 4. 检查appium是否安装成功:     $ sudo npm install appium-doctor -g     $ appium-doctor 5. 重新安装依赖     $ brew upgrade Carthage     $ brew unlink libimobiledevice     $ brew install libimobiledevice --HEAD

    $ brew install ios-deploy

$ gem install xcpretty

 

6. 更新XCUItest driver - WebDriverAgent

官网下载最新的WebDriverAgent:https://github.com/facebook/WebDriverAgent

将文件夹覆盖原来的WebDriverAgent,自动签名/手动签名参照:https://blog.csdn.net/yinshuilan/article/details/80626314

转载请注明原文地址: https://www.6miu.com/read-2596301.html

最新回复(0)