Appium源码配置问题总结

来源:互联网 发布:ping网络命令怎么设置 编辑:程序博客网 时间:2024/05/13 11:53

接testerhome一篇总结贴,跟着后面添加一些搭建开发环境时遇到的问题。

RESETTING NPM

chromedriver安装失败

* Determining platform* Platform is mac---- Resetting / Initializing Appium ----RESETTING NPM* Installing new or updated NPM modules (including devDeps)npm WARN package.json assert@1.3.0 assert is also the name of a node core module.npm WARN package.json md5calculator@0.0.3 No repository field.npm WARN package.json path@0.11.14 path is also the name of a node core module.npm WARN package.json utf7@1.0.0 No repository field.npm WARN package.json vargs@0.1.0 No repository field.npm WARN package.json node-idevice@0.1.5 No repository field.> chromedriver@2.15.0 install /Users/wuxian/Documents/sourcecode/self/appium/node_modules/appium-chromedriver/node_modules/chromedriver> node install.jsDownloading http://chromedriver.storage.googleapis.com/2.15/chromedriver_mac32.zipSaving to /var/folders/3j/s3hfvmy572vcn3h02c_rxcbm0000gn/T/chromedriver/chromedriver_mac32.zipevents.js:85      throw er; // Unhandled 'error' event            ^Error: connect ETIMEDOUT    at exports._errnoException (util.js:746:11)    at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1000:19)npm ERR! Darwin 14.1.0npm ERR! argv "node" "/usr/local/bin/npm" "install" "."npm ERR! node v0.12.2npm ERR! npm  v2.7.4npm ERR! code ELIFECYCLEnpm ERR! chromedriver@2.15.0 install: `node install.js`npm ERR! Exit status 1npm ERR! npm ERR! Failed at the chromedriver@2.15.0 install script 'node install.js'.npm ERR! This is most likely a problem with the chromedriver package,npm ERR! not with npm itself.npm ERR! Tell the author that this fails on your system:npm ERR!     node install.jsnpm ERR! You can get their info via:npm ERR!     npm owner ls chromedrivernpm ERR! There is likely additional logging output above.npm ERR! Please include the following file with any support request:npm ERR!     /Users/wuxian/Documents/sourcecode/self/appium/npm-debug.log---- FAILURE: reset.sh exited with status 1 ----

原因:chromedriver被墙了
解决方法:使用vpn。

RESETTING ANDROID

ant

* Building Android bootstrapRunning "buildAndroidBootstrap" taskFatal error: Error finding ant binary, is it on your path?

原因:ant没有安装

解决方法:下载ant,并配置环境变量,然后在命令行敲ant,保证正确安装。

android sdk 16

[ERROR] After correcting the problems, you can resume the build with the command[ERROR]   mvn <goals> -rf :android-driver-appreadlink: illegal option -- fusage: readlink [-n] [file ...]Warning: Command failed: /bin/sh -c mvn clean package -DskipTests=truereadlink: illegal option -- fusage: readlink [-n] [file ...] Use --force to continue.

安装android sdk 16就可以了。

0 1
原创粉丝点击