Appium failed to install on Ubuntu

Platform you are automating: Android
Appium version (latest)
Simulator/Emulator or Real Device: N/A
The language you are using for writing tests (client binding)
Your OS: Ubuntu 14.04 LTS / 64bit

command installation: npm install -g appium

Error Log

[email protected] install /home/yuliu/.linuxbrew/lib/node_modules/appium/node_modules/appium-selendroid-driver
node ./bin/install.js

dbug AndroidDriver Getting Java version
info SelendroidInstaller Ensuring /home/yuliu/.linuxbrew/lib/node_modules/appium/node_modules/appium-selendroid-driver/node_modules/appium-selendroid-installer/selendroid/download exists
info AndroidDriver Java version is: 1.8.0_73
info SelendroidInstaller Downloading Selendroid standalone server version 0.17.0 from https://github.com/selendroid/selendroid/releases/download/0.17.0/selendroid-standalone-0.17.0-with-dependencies.jar → /home/yuliu/.linuxbrew/lib/node_modules/appium/node_modules/appium-selendroid-driver/node_modules/appium-selendroid-installer/selendroid/download/selendroid-server.jar
info SelendroidInstaller Writing binary content to /home/yuliu/.linuxbrew/lib/node_modules/appium/node_modules/appium-selendroid-driver/node_modules/appium-selendroid-installer/selendroid/download/selendroid-server.jar
info SelendroidInstaller Selendroid standalone server downloaded
info SelendroidInstaller Determining AndroidManifest location
Error: Command ‘jar tf /home/yuliu/.linuxbrew/lib/node_modules/appium/node_modules/appium-selendroid-driver/node_modules/appium-selendroid-installer/selendroid/download/selendroid-server.jar’ errored out: Error: spawn jar ENOENT
at exports._errnoException (util.js:890:11)
at Process.ChildProcess._handle.onexit (internal/child_process.js:182:32)
at onErrorNT (internal/child_process.js:348:16)
at _combinedTickCallback (node.js:383:13)
at process._tickCallback (node.js:407:11)
at ChildProcess. (lib/teen_process.js:31:14)
at emitOne (events.js:90:13)
at ChildProcess.emit (events.js:182:7)
at Process.ChildProcess._handle.onexit (internal/child_process.js:202:12)
at onErrorNT (internal/child_process.js:348:16)
at _combinedTickCallback (node.js:383:13)
at process._tickCallback (node.js:407:11)
/home/yuliu/.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 3.13.0-83-generic
npm ERR! argv “/home/yuliu/.linuxbrew/Cellar/node/5.9.1/bin/node” “/home/yuliu/.linuxbrew/bin/npm” “install” “-g” “appium”
npm ERR! node v5.9.1
npm ERR! npm v3.7.3
npm ERR! code ELIFECYCLE

npm ERR! [email protected] install: node ./bin/install.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script ‘node ./bin/install.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-selendroid-driver package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node ./bin/install.js
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs appium-selendroid-driver
npm ERR! Or if that isn’t available, you can get their info via:
npm ERR! npm owner ls appium-selendroid-driver
npm ERR! There is likely additional logging output above.

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

Try with Passing Parameters for Appium Version as “npm install -g [email protected]

1 Like

It worked when installed the downgraded appium version (i choose appium 1.4.16). Thanks

“npm install -g [email protected]

1 Like

Thank you very much … It works with me also :slight_smile: