习惯性伸手党区 在 windows 里用命令行安装 appium, 为啥老是说这样的错呢?

emily · 2016年04月07日 · 1202 次阅读

小白在这里向各位大侠请教:
我在 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\
node_modules\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

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