Appium [Appium1.7.2] 使用命令行:appium -a 127.0.0.1 -p 4723 --session-override 启动 Appium,只能启动 GUI 界面,无法 Start server

kekocool · 2018年03月21日 · 最后由 MinnWu 回复于 2018年12月14日 · 1582 次阅读

【Appium1.7.2】使用命令行:appium -a 127.0.0.1 -p 4723 --session-override 启动 Appium,只能启动 GUI 界面,无法 Start server

错误 log:
C:\Users\Administrator>appium -a 127.0.0.1 -p 4723 --session-override

C:\Users\Administrator>
Warning: Accessing PropTypes via the main React package is deprecated, and will be removed in React v16.

  1. Use the latest available v15.* prop-types package from npm instead. For info on usage, compatibility, migration and more, see https://fb.me/prop-types-docs Warning: Accessing createClass via the main React package is deprecated, and will be removed in React v16 .0. Use a plain JavaScript class instead. If you're not yet ready to migrate, create-react-class v15.* is available on npm as a temporary, drop-in replacement. For more info see https://fb.me/react-create-class

使用的是 appium-desktop-Setup-1.4.1-ia32.exe,请求各位帮忙看下这是为什么,谢谢了~~~~~~~~~~~~~~~~~~~~~~~~~

共收到 6 条回复 时间 点赞

因为你就是启动的客户端吧,安装旧版的客户端可以配置一个环境变量,新版的 desktop 我还不清楚具体怎么配置,我一般是用npm install appium安装,或者使用淘宝源cnpm install appium

雨夜狂奔 回复

配置一下环境变量。已经解决了,谢谢

我想知道怎么配置的环境变量···😖

Micheal-CY 回复

找到 appium.cmd,把目录配置到 path 中,默认是 C:\Users\Administrator\AppData\Roaming\npm

kekocool 回复

我没有 npm 文件夹,是不是因为我是下载的 exe 安装的原因?

你好,我这没有 appium.cmd 文件怎么弄?

需要 登录 後方可回應,如果你還沒有帳號按這裡 注册