0

I'm beginner in mobile automation Today I've downloaded source code for Appium from https://github.com/appium/appium/releases

And installed nodejs (v0.10.37)

Errors occur after attempt to start Appium (by ./reset.sh --verbose)

* Determining platform
* Platform is linux
 ---- Resetting / Initializing Appium ----
RESETTING NPM
* Installing new or updated NPM modules (including devDeps)
npm ERR! fetch failed https://registry.npmjs.org/body-parser/-/body-parser-1.12.4.tgz
npm ERR! fetch failed https://registry.npmjs.org/bplist-creator/-/bplist-creator-0.0.5.tgz
npm ERR! fetch failed https://registry.npmjs.org/bytes/-/bytes-1.0.0.tgz
npm ERR! fetch failed https://registry.npmjs.org/bplist-parser/-/bplist-parser-0.1.0.tgz
npm ERR! fetch failed https://registry.npmjs.org/camel-back-promise/-/camel-back-promise-1.0.0.tgz
npm ERR! fetch failed https://registry.npmjs.org/bufferpack/-/bufferpack-0.0.6.tgz
npm ERR! fetch failed https://registry.npmjs.org/colors/-/colors-1.0.3.tgz
npm ERR! fetch failed https://registry.npmjs.org/appium-xcode/-/appium-xcode-2.0.5.tgz
npm ERR! fetch failed https://registry.npmjs.org/difflib/-/difflib-0.2.4.tgz
npm ERR! fetch failed https://registry.npmjs.org/date-utils/-/date-utils-1.2.17.tgz
npm ERR! fetch failed https://registry.npmjs.org/es6-promise/-/es6-promise-2.3.0.tgz
npm ERR! fetch failed https://registry.npmjs.org/express/-/express-4.11.2.tgz
npm ERR! fetch failed https://registry.npmjs.org/glob/-/glob-4.4.2.tgz
npm ERR! fetch failed https://registry.npmjs.org/grunt/-/grunt-0.4.5.tgz
npm ERR! fetch failed https://registry.npmjs.org/js2xmlparser2/-/js2xmlparser2-0.2.0.tgz
npm ERR! fetch failed https://registry.npmjs.org/grunt-cli/-/grunt-cli-0.1.13.tgz
npm ERR! fetch failed https://registry.npmjs.org/longjohn/-/longjohn-0.2.4.tgz
npm ERR! fetch failed https://registry.npmjs.org/argparse/-/argparse-1.0.2.tgz
npm ERR! fetch failed https://registry.npmjs.org/async/-/async-0.9.2.tgz
npm ERR! fetch failed https://registry.npmjs.org/md5calculator/-/md5calculator-0.0.3.tgz
npm ERR! fetch failed https://registry.npmjs.org/method-override/-/method-override-2.3.3.tgz
npm ERR! fetch failed https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.1.tgz
npm ERR! fetch failed https://registry.npmjs.org/morgan/-/morgan-1.5.3.tgz
npm ERR! fetch failed https://registry.npmjs.org/mv/-/mv-2.0.3.tgz

blablabla

npm ERR! fetch failed https://registry.npmjs.org/appium-adb/-/appium-adb-1.7.5.tgz
npm ERR! network tunneling socket could not be established, cause=connect ECONNREFUSED
npm ERR! network This is most likely not a problem with npm itself
npm ERR! network and is related to network connectivity.
npm ERR! network In most cases you are behind a proxy or have bad network settings.
npm ERR! network 
npm ERR! network If you are behind a proxy, please make sure that the
npm ERR! network 'proxy' config is set properly.  See: 'npm help config'

npm ERR! System Linux 3.16.0-38-generic
npm ERR! command "/usr/bin/node" "/usr/bin/npm" "install" "."
npm ERR! cwd /home/cherevychenkosa/Downloads/appium-1.4.6
npm ERR! node -v v0.10.37
npm ERR! npm -v 1.4.28
npm ERR! code ECONNRESET
npm ERR! 
npm ERR! Additional logging details can be found in:
npm ERR!     /home/cherevychenkosa/Downloads/appium-1.4.6/npm-debug.log
npm ERR! not ok code 0
---- FAILURE: reset.sh exited with status 1 ----
cherevychenkosa
  • 55
  • 1
  • 10
  • have you eliminated possible errors suggested in the log? – yantaq Jul 14 '15 at 21:52
  • there are a lot of logs in npm-debug.log file (appium folder) and they are the same as I attached above from terminal `npm ERR! network tunneling socket could not be established, cause=connect ECONNREFUSED` similar error occurred after attempt to install Appium via npm (thats why I use source code). Maybe there is another way to run appium? – cherevychenkosa Jul 14 '15 at 22:27
  • check this thread it might help http://stackoverflow.com/questions/22374416/how-to-setup-appium-in-ubuntu-for-android – yantaq Jul 15 '15 at 18:22

1 Answers1

0

Probably you are behind a proxy, that was my problem. And could be a real pain. Getting npm to work behind a proxy requires setting the proxy and https-proxy settings.

Open an command prompt or terminal session and run the following commands to configure npm to work with your proxy. The commands use proxy.company.com as the address and 8080 as the port.

npm config set proxy http://proxy.company.com:8080
npm config set https-proxy http://proxy.company.com:8080

Original post.

Gustavo Morales
  • 2,614
  • 9
  • 29
  • 37