LoginSignup
0
0

More than 5 years have passed since last update.

Proxy環境でWindows 7にAppiumをインストールする(2016/05版)

Last updated at Posted at 2016-05-30

Proxy環境でWindows 7にAppiumをインストールしようとしたら嵌ってしまったのでメモ。

環境

構築した環境は以下の通り。
- Windows 7 SP1 x86
- JDK 8u91
- Node.js v4.4.5
- npm 2.15.5
- Appium 1.5.2

JDKのインストール

Node.jsのインストール

  • Node.jsの公式ページからNode.jsのインストーラをダウンロードし、インストールを実行する
  • npmのproxyとregistryを設定する
    • windowsの場合、registryをhttps->httpに変える必要がある
 $ npm config -g set proxy http://proxyhost:8888
 $ npm config -g set https-proxy http://proxyhost:8888
 $ npm config -g set registry http://registry.npmjs.org/
  • npmの設定内容を確認する
 $ npm config list
  • 環境変数HTTP_PROXYを設定する(ここが重要)
    • Appiumをインストールする際に、上記のnpmのproxy設定だけではエラーになってしまう。(appium-chromedriverのインストール時にChromeDriverのバイナリのダウンロードに失敗する)
 $ set HTTP_PROXY=http://proxyhost:8888

Appiumのインストール

  • npmからAppiumをインストールする
 $ npm -g install appium
0
0
0

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
0
0