2016-10-04 21 views
0

私のマシンのネットワークプロキシ設定のためですか?また、私は企業ファイアウォールの下にいます。AppiumをUbuntuにインストールできない16.04

error:Failed at the [email protected] install script 'node install-npm.js'

親切に私は、LinuxにAndroidの自動化を設定するには

[email protected]:~$ npm install -g appium 
    /home/paranth/.linuxbrew/bin/appium -> /home/paranth/.linuxbrew/lib/node_modules/appium/build/lib/main.js 
    /home/paranth/.linuxbrew/bin/authorize-ios -> /home/paranth/.linuxbrew/lib/node_modules/appium/node_modules/.bin/authorize-ios 

    > [email protected] install /home/paranth/.linuxbrew/lib/node_modules/appium/node_modules/appium-android-driver/node_modules/appium-chromedriver 
    > node install-npm.js 

    info Chromedriver Install Installing Chromedriver version '2.21' for platform 'linux' and architecture '64' 
    info Chromedriver Install Opening temp file to write chromedriver_linux64 to... 
    info Chromedriver Install Downloading http://chromedriver.storage.googleapis.com/2.21/chromedriver_linux64.zip... 
    info Chromedriver Install Writing binary content to /tmp/201694-10666-t0tuz0.b4lorsh5mi/chromedriver_linux64.zip... 
    info Chromedriver Install Extracting /tmp/201694-10666-t0tuz0.b4lorsh5mi/chromedriver_linux64.zip to /tmp/201694-10666-t0tuz0.b4lorsh5mi/chromedriver_linux64 
    Invalid or unsupported zip format. No END header found 
    /home/paranth/.linuxbrew/lib 
    `-- (empty) 

    npm WARN optional Skipping failed optional dependency /appium/fsevents: 
    npm WARN notsup Not compatible with your operating system or architecture: [email protected] 
    npm ERR! Linux 4.4.0-38-generic 
    npm ERR! argv "/home/paranth/.linuxbrew/Cellar/node/6.7.0/bin/node" "/home/paranth/.linuxbrew/bin/npm" "install" "-g" "appium" 
    npm ERR! node v6.7.0 
    npm ERR! npm v3.10.7 
    npm ERR! code ELIFECYCLE 

    npm ERR! [email protected] install: `node install-npm.js` 
    npm ERR! Exit status 1 
    npm ERR! 
    npm ERR! Failed at the [email protected] install script 'node install-npm.js'. 
    npm ERR! Make sure you have the latest version of node.js and npm installed. 
    npm ERR! If you do, this is most likely a problem with the appium-chromedriver package, 
    npm ERR! not with npm itself. 
    npm ERR! Tell the author that this fails on your system: 
    npm ERR!  node install-npm.js 
    npm ERR! You can get information on how to open an issue for this project with: 
    npm ERR!  npm bugs appium-chromedriver 
    npm ERR! Or if that isn't available, you can get their info via: 
    npm ERR!  npm owner ls appium-chromedriver 
    npm ERR! There is likely additional logging output above. 

    npm ERR! Please include the following file with any support request: 
    npm ERR!  /home/paranth/npm-debug.log 
    npm ERR! code 1 

答えて

0

この問題を解決するのに役立つ:

A)linuxbrewのインストール:https://github.com/Linuxbrew/linuxbrew b)はホームフォルダにAndroidのSDKをダウンロードし、解凍:http://dl.google.com/android/android-sdk_r24.4.1-linux.tgz c)AndroidのSDKパスを設定します。

  1. コマンドでファイルを開く:

    はsudo geditの〜/ .bashrcの

は、ファイルの末尾に次の行を追加します。 Linuxの醸造パス

export PATH="$HOME/.linuxbrew/bin:$PATH" 
export LD_LIBRARY_PATH="$HOME/.linuxbrew/lib:$LD_LIBRARY_PATH" 

#android 
export ANDROID_HOME=/home/asci/android-sdk-linux 
export PATH=$PATH:$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools 

を追加し、ファイルを閉じます。 次のコマンドを実行します。

source ~/.bashrc 

e)は、これらのコマンドを一つずつ実行します。

  1. アンドロイド

(これは、SDKマネージャを開き、すべてのSDKツールをインストールしますツールフォルダとAndroid 6.0 APIから)

  1. 醸造インストールノード

  2. NPMインストール-g appium

  3. appium &

0

(これは、自動化を実行するのに必要なappiumサーバを起動します)ファイアウォールまたは廃業取得個人データネットワークから試してみてください。それは動作します。それは私のために働いた。

次に、 "npm install -g appium"を試してください

関連する問題