Appium 安装 appium 出现连接 github 错误

kuroky · 2015年04月01日 · 最后由 kuroky 回复于 2015年04月02日 · 1967 次阅读

错误信息如下,有人遇到过这个问题吗?

D:\nodejs\npm\node_modules\appium\node_modules\ws>node "C:\nodejs\node_modules\n
pm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild
npm WARN engine hawk@0.10.2: wanted: {"node":"0.8.x"} (current: {"node":"0.10.35
","npm":"1.4.28"})
npm WARN engine sntp@0.1.4: wanted: {"node":"0.8.x"} (current: {"node":"0.10.35"
,"npm":"1.4.28"})
npm WARN engine boom@0.3.8: wanted: {"node":"0.8.x"} (current: {"node":"0.10.35"
,"npm":"1.4.28"})
npm WARN engine cryptiles@0.1.3: wanted: {"node":"0.8.x"} (current: {"node":"0.1
0.35","npm":"1.4.28"})
npm WARN engine hoek@0.7.6: wanted: {"node":"0.8.x"} (current: {"node":"0.10.35"
,"npm":"1.4.28"})
|


> ws@0.4.31 install D:\nodejs\npm\node_modules\appium\node_modules\socket.io\nod
e_modules\engine.io\node_modules\ws
> (node-gyp rebuild 2> builderror.log) || (exit 0)

/
D:\nodejs\npm\node_modules\appium\node_modules\socket.io\node_modules\engine.io\
node_modules\ws>node "C:\nodejs\node_modules\npm\bin\node-gyp-bin\\..\..\node_mo
dules\node-gyp\bin\node-gyp.js" rebuild
npm ERR! fetch failed https://github.com/LearnBoost/node-XMLHttpRequest/archive/
0f36d0b5ebc03d85f860d42a64ae9791e1daa433.tar.gz
npm ERR! fetch failed https://github.com/LearnBoost/node-XMLHttpRequest/archive/
0f36d0b5ebc03d85f860d42a64ae9791e1daa433.tar.gz
npm ERR! fetch failed https://github.com/LearnBoost/node-XMLHttpRequest/archive/
0f36d0b5ebc03d85f860d42a64ae9791e1daa433.tar.gz
npm ERR! network socket hang up
npm ERR! network This is most likely not a problem with npm itself
npm ERR! network and is related to network connectivity.
npm ERR! network In most cases you are behind a proxy or have bad network settin
gs.
npm ERR! network
npm ERR! network If you are behind a proxy, please make sure that the
npm ERR! network 'proxy' config is set properly.  See: 'npm help config'

npm ERR! System Windows_NT 6.1.7601
npm ERR! command "C:\\nodejs\\\\node.exe" "C:\\nodejs\\node_modules\\npm\\bin\\n
pm-cli.js" "install" "-g" "appium"
npm ERR! cwd d:\Users\mlcui
npm ERR! node -v v0.10.35
npm ERR! npm -v 1.4.28
npm ERR! code ECONNRESET
npm ERR! not ok code 0
如果觉得我的文章对您有用,请随意打赏。您的支持将鼓励我继续创作!
共收到 3 条回复 时间 点赞

fetch failed == 获取失败。检查网络或者换个 npmrc

#2 楼 @chenhengjie123 多试几次就可以了,万恶的网络

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