appium: can't install appium1.5.0

Hi Dears

     I used npm install -g appium  update appium to 1.5.0 in commond ,there is a problem appear in install SelendroidInstaller . 

yan@yan-Inspiron-7548:~$ sudo npm install -g appium [sudo] password for yan:

appium-chromedriver@2.8.0 install /usr/local/lib/node_modules/appium/node_modules/appium-chromedriver node install-npm.js

Error trying to install Chromedriver binary. Waiting and trying again. Error trying to install Chromedriver binary. Waiting and trying again. Error trying to install Chromedriver binary. Waiting and trying again. 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… RequestError: Error: connect ETIMEDOUT 74.125.203.128:80 at new RequestError (/usr/local/lib/node_modules/appium/node_modules/request-promise/lib/errors.js:11:15) at Request.RP$callback as _callback at self.callback (/usr/local/lib/node_modules/appium/node_modules/request/request.js:199:22) at emitOne (events.js:77:13) at Request.emit (events.js:169:7) at Request.onRequestError (/usr/local/lib/node_modules/appium/node_modules/request/request.js:821:8) at emitOne (events.js:77:13) at ClientRequest.emit (events.js:169:7) at Socket.socketErrorListener (_http_client.js:256:9) at emitOne (events.js:77:13) at Socket.emit (events.js:169:7) at emitErrorNT (net.js:1250:8) at nextTickCallbackWith2Args (node.js:442:9) at process._tickCallback (node.js:356:17)

appium-selendroid-driver@1.2.2 install /usr/local/lib/node_modules/appium/node_modules/appium-selendroid-driver node ./bin/install.js

info SelendroidInstaller Ensuring /usr/local/lib/node_modules/appium/node_modules/appium-selendroid-installer/selendroid/download exists 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 --> /usr/local/lib/node_modules/appium/node_modules/appium-selendroid-installer/selendroid/download/selendroid-server.jar

I’m wait about 3h or more times it always stop here. I’m in china but i have used VPN and my node is v4.4.0 npm is v2.14.20. I have find this problem in win 10 ,win 8.1 ,win 7 and ubuntu 14.04. Sometimes i install success in win platform,then i find the appium-doctor have be lost.

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Comments: 24 (6 by maintainers)

Most upvoted comments

Try installing appium without sudo

hi i had try installing appium without sudo in user and root ,it also can’t successful.

In user ,remind me not have permission

yan@yan-Inspiron-7548:~$ npm install -g appium npm ERR! tar.unpack untar error /home/yan/.npm/appium/1.5.0/package.tgz npm ERR! Linux 4.2.0-34-generic npm ERR! argv “/usr/local/bin/node” “/usr/local/bin/npm” “install” “-g” “appium” npm ERR! node v4.4.0 npm ERR! npm v2.14.20 npm ERR! path /usr/local/lib/node_modules/appium npm ERR! code EACCES npm ERR! errno -13 npm ERR! syscall mkdir

npm ERR! Error: EACCES: permission denied, mkdir ‘/usr/local/lib/node_modules/appium’ npm ERR! at Error (native) npm ERR! { [Error: EACCES: permission denied, mkdir ‘/usr/local/lib/node_modules/appium’] npm ERR! errno: -13, npm ERR! code: ‘EACCES’, npm ERR! syscall: ‘mkdir’, npm ERR! path: ‘/usr/local/lib/node_modules/appium’, npm ERR! fstream_type: ‘Directory’, npm ERR! fstream_path: ‘/usr/local/lib/node_modules/appium’, npm ERR! fstream_class: ‘DirWriter’, npm ERR! fstream_stack: npm ERR! [ ‘/usr/local/lib/node_modules/npm/node_modules/fstream/lib/dir-writer.js:35:25’, npm ERR! ‘/usr/local/lib/node_modules/npm/node_modules/mkdirp/index.js:47:53’, npm ERR! ‘FSReqWrap.oncomplete (fs.js:82:15)’ ] } npm ERR! npm ERR! Please try running this command again as root/Administrator.

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

In root

yan@yan-Inspiron-7548:~$ sudo su [sudo] password for yan: root@yan-Inspiron-7548:/home/yan# npm install -g appium npm ERR! tar.unpack untar error /tmp/npm-2956-3cc2c276/registry.npmjs.org/appium-android-driver/-/appium-android-driver-1.6.12.tgz npm ERR! tar.unpack untar error /tmp/npm-2956-3cc2c276/registry.npmjs.org/appium-instruments/-/appium-instruments-3.6.0.tgz npm ERR! Linux 4.2.0-34-generic npm ERR! argv “/usr/local/bin/node” “/usr/local/bin/npm” “install” “-g” “appium” npm ERR! node v4.4.0 npm ERR! npm v2.14.20

npm ERR! unexpected eof npm ERR! npm ERR! If you need help, you may report this error at: npm ERR! https://github.com/npm/npm/issues

npm ERR! Please include the following file with any support request: npm ERR! /home/yan/npm-debug.log root@yan-Inspiron-7548:/home/yan#

The npm-debug.log

https://drive.google.com/open?id=0B0ebpGyim_g8ZVNId1Z1cVhOVmM