LoginSignup
9

More than 5 years have passed since last update.

Appium をインストールするときにハマったこと

Last updated at Posted at 2014-02-26

はじめに

UIの自動テストを導入するためにサーバに appium を入れるときにネットで手順を調べてためしていたのですが、一部ハマったところがあったので忘備録を兼ねて記事にしました

Appium をインストールするときにハマったこと

結論から言うと、npm が node.js を入れたタイミングで同時にインストールされるようになっていて、今までの npm をインストールする curl コマンドが失敗してハマってましたw

今の手順

$ brew install node
==> Downloading http://nodejs.org/dist/v0.10.25/node-v0.10.25.tar.gz
######################################################################## 100.0%
==> ./configure --prefix=/usr/local/Cellar/node/0.10.25
==> make install
==> Caveats
Bash completion has been installed to:
  /usr/local/etc/bash_completion.d
==> Summary
?  /usr/local/Cellar/node/0.10.25: 1125 files, 16M, built in 4.6 minutes


$ n[Tab]
nano                     netbiosd                 nm
nasm                     netstat                  nmedit
natd                     nettop                   node
native2ascii             networksetup             nohup
natutil                  newaliases               nologin
nbdst                    newfs_exfat              notifyd
nc                       newfs_hfs                notifyutil
ncal                     newfs_msdos              npm
ncdestroy                newfs_udf                nroff
....

★★以前はココで $ curl https://npmjs.org/install.sh | sh を実行していた★★

$ sudo npm install -g appium
Password:
npm http GET https://registry.npmjs.org/appium
npm http 200 https://registry.npmjs.org/appium
npm http GET https://registry.npmjs.org/appium/-/
....
minimatch@0.2.14, rimraf@2.0.3, lodash@0.9.2, glob@3.1.21, coffee-script@1.3.3, underscore.string@2.2.1, iconv-lite@0.2.11, findup-sync@0.1.2, js-yaml@2.0.5)
├── plist@0.4.3 (xmlbuilder@0.4.3, xmldom@0.1.19)
├── express@3.4.8 (methods@0.1.0, merge-descriptors@0.0.1, cookie-signature@1.0.1, range-parser@0.0.4, fresh@0.2.0, debug@0.7.4, buffer-crc32@0.2.1, cookie@0.1.0, send@0.1.4, commander@1.3.2, connect@2.12.0)
└── socket.io@0.9.16 (base64id@0.1.0, policyfile@0.0.4, redis@0.7.3, socket.io-client@0.9.16)

$ npm install wd
npm http GET https://registry.npmjs.org/wd
npm http 200 https://registry.npmjs.org/wd
...
aws-sign2@0.5.0, tunnel-agent@0.3.0, oauth-sign@0.3.0, node-uuid@1.4.1, mime@1.2.11, http-signature@0.10.0, tough-cookie@0.12.1, form-data@0.1.2, hawk@1.0.0)

└── archiver@0.5.2 (lazystream@0.1.0, readable-stream@1.0.26, zip-stream@0.1.4, file-utils@0.1.5)

$ appium
info: Welcome to Appium v0.15.0 (REV a7b47d73a27074cc928cc5b325e...)
info: Appium REST http interface listener started on 0.0.0.0:4723
   info  - socket.io started
info: Spawning instruments force-quitting watcher process
info: [FQInstruments STDERR] Force quit unresponsive instruments v0.0.1

2週間前にローカル環境に appium をインストールしたときにメモしておいた手順どおりにやったら curl の部分で動作しなくて30分近く調べてしまいました・・・orz

おわりに

node.js を入れることで npm まで入るようになってたのは便利ですが、できれば curl したときにそれがわかるようなメッセージを出してほしいっすね・・・

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
9