Appium Windows 下无法安装 appium,请高人指教

云飞凌风 · 2014年10月29日 · 最后由 嘻嘻 回复于 2015年07月06日 · 2385 次阅读

如下,试过很多方法,找过很多资料,都无法安装成功。请高人指教。


C:\>npm --registry http://registry.cnpmjs.org install -g appium
-


> ws@0.4.32 install C:\Users\Administrator\AppData\Roaming\npm\node_modules\appi
um\node_modules\ws
> (node-gyp rebuild 2> builderror.log) || (exit 0)

npm WARN engine hawk@0.10.2: wanted: {"node":"0.8.x"} (current: {"node":"0.10.32
","npm":"1.4.28"})
-


> ws@0.4.31 install C:\Users\Administrator\AppData\Roaming\npm\node_modules\appi
um\node_modules\socket.io\node_modules\engine.io\node_modules\ws
> (node-gyp rebuild 2> builderror.log) || (exit 0)

npm WARN engine boom@0.3.8: wanted: {"node":"0.8.x"} (current: {"node":"0.10.32"
,"npm":"1.4.28"})
npm WARN engine cryptiles@0.1.3: wanted: {"node":"0.8.x"} (current: {"node":"0.1
0.32","npm":"1.4.28"})
npm WARN engine sntp@0.1.4: wanted: {"node":"0.8.x"} (current: {"node":"0.10.32"
,"npm":"1.4.28"})
npm WARN engine hoek@0.7.6: wanted: {"node":"0.8.x"} (current: {"node":"0.10.32"
,"npm":"1.4.28"})
npm ERR! ws@0.4.32 install: `(node-gyp rebuild 2> builderror.log) || (exit 0)`
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the ws@0.4.32 install script.
npm ERR! This is most likely a problem with the ws package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     (node-gyp rebuild 2> builderror.log) || (exit 0)
npm ERR! You can get their info via:
npm ERR!     npm owner ls ws
npm ERR! There is likely additional logging output above.

npm ERR! System Windows_NT 6.1.7600
npm ERR! command "C:\\Program Files\\nodejs\\\\node.exe" "C:\\Program Files\\nod
ejs\\node_modules\\npm\\bin\\npm-cli.js" "--registry" "http://registry.cnpmjs.or
g" "install" "-g" "appium"
npm ERR! cwd C:\
npm ERR! node -v v0.10.32
npm ERR! npm -v 1.4.28
npm ERR! syscall spawn
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! not ok code 0

如果觉得我的文章对您有用,请随意打赏。您的支持将鼓励我继续创作!
共收到 6 条回复 时间 点赞

我也遇到这个问题,求解决

直接下载安装

这个是因为 node 版本太高了 0.10.32,安装 appium 依赖 node0.8.X 的版本,要不安装一个 0.8.x 版本的 node

npm WARN engine hawk@0.10.2: wanted: {"node":"0.8.x"} (current: {"node":"0.10.32
","npm":"1.4.28"})
这句的提示是:nodejs 的版本你当前安装的是 node":"0.10.32,版本过高,重新下载一个 wanted: {"node":"0.8.x"}低版本的安装就 ok 了

#3 楼 @123456_ 大神真棒,我被这个问题折磨了两天,尝试了无数次了

#5 楼 @vv_0223 (__^) 嘻嘻……

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