永发信息网

如何在 linux 中安装 APPIUM · TesterHome

答案:2  悬赏:40  手机版
解决时间 2021-03-24 04:27
  • 提问者网友:黑米和小志
  • 2021-03-23 18:31
如何在 linux 中安装 APPIUM · TesterHome
最佳答案
  • 五星知识达人网友:上分大魔王
  • 2021-03-23 19:36
系统环境

OS: centos6.5

JDK: 1.7

已安装依赖

gcc python openssl
-----------其为安装nodejs的环境

已成功安装

nodejs : v0.10.40
NPM : v 1.4.28

安装后的问题

bufferutil@1.1.0 install /usr/lib/node_modules/appium/node_modules/ws/node_modules/bufferutil
node-gyp rebuild

gyp WARN EACCES user "root" does not have permission to access the dev dir "/root/.node-gyp/0.10.40"
gyp WARN EACCES attempting to reinstall using temporary dev dir
"/usr/lib/node_modules/appium/node_modules/ws/node_modules/bufferutil/.node-gyp"
gyp WARN install got an error, rolling back install
gyp WARN install got an error, rolling back install
gyp ERR! configure error
gyp ERR! stack Error: read ECONNRESET
gyp ERR! stack at errnoException (net.js:905:11)
gyp ERR! stack at TCP.onread (net.js:559:19)
gyp ERR! System Linux 2.6.32-431.23.3.el6.x86_64
gyp ERR! command "node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /usr/lib/node_modules/appium/node_modules/ws/node_modules/bufferutil
gyp ERR! node -v v0.10.40
gyp ERR! node-gyp -v v1.0.1
gyp ERR! not ok
npm WARN engine hawk@0.10.2: wanted: {"node":"0.8.x"} (current: {"node":"0.10.40","npm":"1.4.28"})
npm WARN engine sntp@0.1.4: wanted: {"node":"0.8.x"} (current: {"node":"0.10.40","npm":"1.4.28"})
npm WARN engine boom@0.3.8: wanted: {"node":"0.8.x"} (current: {"node":"0.10.40","npm":"1.4.28"})
npm WARN engine hoek@0.7.6: wanted: {"node":"0.8.x"} (current: {"node":"0.10.40","npm":"1.4.28"})
npm WARN engine cryptiles@0.1.3: wanted: {"node":"0.8.x"} (current: {"node":"0.10.40","npm":"1.4.28"})
npm WARN optional dep failed, continuing bufferutil@1.1.0

直接将nodejs的安装的路径改成chmod 777 之后 就可以解压安装了,这样子就不会跟npm install appium 冲突了
全部回答
  • 1楼网友:动情书生
  • 2021-03-23 21:11
首先你启动 appium 的时候 指定设备的 uuid 指定 app 的 bundle id 比如 appium -u 45f082689dbaebb0ffa3620b3ae22ad9faff9a30 --app io.appium 然后再去运行脚本。
我要举报
如以上回答内容为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
点此我要举报以上问答信息
大家都在看
推荐资讯