英文:
Install or update appium-gestures-plugin required for W3c Actions/Gestures implementation when using Appium 2.0
问题
我正在使用Appium 2.0.0-beta66版本。由于TouchAction类被用于手势/操作已经被弃用,我应该安装appium-gestures-plugin(来自这里)并使用它。
当我尝试运行以下命令
appium plugin install --source=npm appium-gestures-plugin
如建议的那样,我收到以下消息
✔ 安装 'appium-gestures-plugin'
错误: ✖ 已经安装了一个名为“gestures”的插件。您是想要更新吗?
我尝试检查已安装的插件
$appium plugin list --installed
✔ 列出已安装的插件
- relaxed-caps@1.0.0-beta.13 [已安装 (npm)]
- images@1.3.7 [已安装 (npm)]
- execute-driver@2.0.6 [已安装 (npm)]
- gestures@1.0.0-beta.4 [已安装 (npm)]
如何将现有的 'gestures@1.0.0-beta.4' 更新到 gestures@2.0.0?
英文:
I am using Appium2.0.0-beta66 version. Since TouchAction class being used for the gesture/actions is being deprecated, I am supposed to install appium-gestures-plugin (from ) and use it.
When I try to run the command
appium plugin install --source=npm appium-gestures-plugin
as was suggested, I am getting the message
✔ Installing 'appium-gestures-plugin'
Error: ✖ A plugin named "gestures" is already installed. Did you mean to update?
I tried to check the installed plugins
$appium plugin list --installed
✔ Listing installed plugins
- relaxed-caps@1.0.0-beta.13 [installed (npm)]
- images@1.3.7 [installed (npm)]
- execute-driver@2.0.6 [installed (npm)]
- gestures@1.0.0-beta.4 [installed (npm)]
How to update the existing 'gestures@1.0.0-beta.4' to gestures@2.0.0 ?
答案1
得分: 0
我需要翻译的部分是:
最终,我得到了答案,我必须使用选项'--unsafe'来从gestures@1.0.0-beta4插件升级到gestures@2.0。这是由插件本身强制执行的,因为版本2.0有重大更改。
$appium插件更新gestures --unsafe
英文:
finally I got the answer that I have to use the option '--unsafe' to update from gestures@1.0.0-beta4 plugin to gestures@2.0. This is being enforced by the plugin itself, because ver2.0, has breaking changes.
$appium plugin update gestures --unsafe
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论