0
我想在我的Mac Os
上设置Appium
。我的目标是运行Appium服务器节点,以在多个设备Android(VM)上使用多个测试。 我在Appium网站上使用.dmg文件安装它,但现在,我需要创建节点以在多个设备(Android)上运行多个测试。要做到这一点,我需要在终端使用“appium”命令,所以我试试这个:npm install -g 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:[email protected] [email protected] install: `node-gyp rebuild`
npm WARN install:[email protected] Exit status 1
/Users/Max/.npm-packages/lib
└── [email protected]
此后,我不能运行我的 “appium &” 命令,得到这个错误
appium &
[1] 9592
Mac$ -bash: appium: command not found
我的问题的任何想法?或者知道用Appium和Selenium Grid运行多个设备测试的方法?
感谢您的帮助
安装XCode7因为有口难言的Xcode 6.4,我尝试安装7 THX – user3568978
升级到Xcode7,还是一样的错误信息 – user3568978