Appium [求助] 在 window 7 上用命令行方式安装 Appium 时老是出错,提示是 appium-selendroid-driver 问题

emily · 2016年04月07日 · 最后由 爱上流浪的猪 回复于 2016年06月14日 · 1368 次阅读

小白在这里向各位大侠请教:
我在 Win 7 下用命令行的方式来安装 Appium, 不管是直接安装(npm install -g appium),还是用影像安装(npm --registry http://registry.cnpmjs.org install -g appium),都是出这样的错。有人遇到过吗??小女子在此先谢过了!!!

C:\Users\Emily\AppData\Roaming\npm\node_modules\appium\node_modules\appium-selen
droid-driver\node_modules\appium-selendroid-installer\node_modules\request-promi
se\lib\errors.js:11
Error.captureStackTrace(this);
^
RequestError: Error: getaddrinfo EAI_AGAIN github.com:443
at new RequestError (C:\Users\Emily\AppData\Roaming\npm\node_modules\appium\
node_modules\appium-selendroid-driver\node_modules\appium-selendroid-installer\n
ode_modules\request-promise\lib\errors.js:11:15)
at Request.RP$callback as _callback
at self.callback (C:\Users\Emily\AppData\Roaming\npm\node_modules\appium\nod
e_modules\appium-selendroid-driver\node_modules\appium-selendroid-installer\node
modules\request-promise\node_modules\request\request.js:199:22)
at emitOne (events.js:77:13)
at Request.emit (events.js:169:7)
at Request.onRequestError (C:\Users\Emily\AppData\Roaming\npm\node_modules\a
ppium\node_modules\appium-selendroid-driver\node_modules\appium-selendroid-insta
ller\node_modules\request-promise\node_modules\request\request.js:821:8)
at emitOne (events.js:77:13)
at ClientRequest.emit (events.js:169:7)
at TLSSocket.socketErrorListener (http_client.js:259:9)
at emitOne (events.js:77:13)
at TLSSocket.emit (events.js:169:7)
at connectErrorNT (net.js:993:8)
at doNTCallback2 (node.js:429:9)
at process.tickCallback (node.js:343:17)
npm ERR! Windows_NT 6.1.7601
npm ERR! argv "C:\MobileTesting\nodejs\node.exe" "C:\MobileTesting\nodejs\
nodemodules\npm\bin\npm-cli.js" "install" "-g" "appium"
npm ERR! node v4.0.0
npm ERR! npm v2.14.2
npm ERR! code ELIFECYCLE

npm ERR! appium-selendroid-driver@1.3.1 install: node ./bin/install.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the appium-selendroid-driver@1.3.1 install script 'node ./bin
/install.js'.
npm ERR! This is most likely a problem with the appium-selendroid-driver package
,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node ./bin/install.js
npm ERR! You can get their info via:
npm ERR! npm owner ls appium-selendroid-driver
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR! D:\appium_command_server\npm-debug.log

共收到 12 条回复 时间 点赞

发帖注意格式。请使用代码块包含日志。

#1 楼 @lihuazhang 怎么弄代码块?截图吗?这个只是在 cmd 下的出错信息......

@yyzzhy
Appium 1.5?你有單獨安裝看看 appium-selendroid 嗎?有人說更新 java 版本就可以解決了,但對我無效。這樣的解答網路上隨便找都有,所以我也是來抱大腿的。

順道提供我的安裝環境
OS:Win7(32bit),Win10(64bit)

相關軟體:
nodeJs 4.4.2
Java 1.8
但是我沒裝 Visual Studio(兩台電腦都沒弄,不知道主因是不是這個)

相關硬體:基準線(I5CPU,8GRAM)

试试连个 *** 吧。

RequestError: Error: getaddrinfo EAI_AGAIN github.com:443

你连不上 github,网站返回 443 ,所以进行不下去。

windows 下建议直接装 .exe ,开箱即用。

PS:你两种装法没啥区别。。。

为什么去不去官网下一个?

#6 楼 @chenhengjie123 我想知道在线安装,跟下个安装包安装的两者在搭建自动化方面有什么区别吗

#8 楼 @aishangliuliangdezhu 你说的 在线安装 是指 npm 安装吗?

在使用上,两者没啥区别。安装包里面已经包含了完整的 npm 安装的内容,实际使用上差不多。

个人觉得主要的区别是官方的版本更新速度。npm 最快,安装包慢不少。但安装包安装起来方便很多(用 npm 得科学上网才能装上,而且 windows 下还有不少依赖要安装)

#9 楼 @chenhengjie123 是,就比如说用 Jenkins 集成的时候啊这些会有区别吗

#10 楼 @aishangliuliangdezhu 没啥区别。集成的时候你有一个能用的 appium server 就好。

需要 登录 后方可回复, 如果你还没有账号请点击这里 注册