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


↙↙↙阅读原文可查看相关链接,并与作者交流