我正试图在我的Mac Os上设置Mac Os。我的目标是运行Appium服务器节点,在多个设备上使用多个测试,Android ( VM )。我在Appium网站上使用.dmg文件安装了它,但现在我需要创建节点来在多个设备( Android )上运行多个测试。为此,我需要在终端中使用“appium”命令,因此我尝试如下:
> brew install node
> npm install -g appium
> npm install wd
> appium &
> node your-appium-test.js 在“npm install -g appium”之前一切都很好。该命令正在运行,但安装结束时出现了一个错误:
产生9处错误。
make: *** [Release/obj.target/validation/src/validation.o] Error 1
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:276:23)
gyp ERR! stack at emitTwo (events.js:100:13)
gyp ERR! stack at ChildProcess.emit (events.js:185:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12)
gyp ERR! System Darwin 14.3.0
gyp ERR! command "/usr/local/Cellar/node/5.6.0/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /Users/Max/.npm-packages/lib/node_modules/appium/node_modules/ws/node_modules/utf-8-validate
gyp ERR! node -v v5.6.0
gyp ERR! node-gyp -v v3.2.1
gyp ERR! not ok
npm WARN install:utf-8-validate@1.1.0 utf-8-validate@1.1.0 install: `node-gyp rebuild`
npm WARN install:utf-8-validate@1.1.0 Exit status 1
/Users/Max/.npm-packages/lib
└── appium@1.4.16在那之后,我无法运行我的“appium &”命令,得到这个错误
appium &
[1] 9592
Mac$ -bash: appium: command not found对我的问题有什么想法吗?或者知道用Appium和Selenium Grid运行多个设备测试的方法?
谢谢你的帮助
发布于 2016-02-18 09:17:40
也许您需要安装XCode7,正如在这中提到的那样
https://stackoverflow.com/questions/35476882
复制相似问题