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 ----
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.
Related
I have Node(v4.1.0) and npm(2.14.3) both installed but when I try to enter the commmand:
npm install --save express
I receive the following error message:
npm ERR! Darwin 14.5.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "--save" "express"
npm ERR! node v4.1.0
npm ERR! npm v2.14.3
npm ERR! code ENOTFOUND
npm ERR! errno ENOTFOUND
npm ERR! syscall getaddrinfo
npm ERR! network getaddrinfo ENOTFOUND host host:80
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! Please include the following file with any support request:
npm ERR! /Users/Christopher_Pelnar/npm-debug.log
Anybody have any experiences or ideas for dealing with this issue? I have tried configuring proxy settings using:
npm config set registry=http://registry.npmjs.org
But that did not solve the issue.
Adding the following code into the command line resolved the issue:
npm config set proxy=http://registry.npmjs.org
Changing "registry" => "proxy" was the difference.
Here is the log:
npm ERR! Error: read ETIMEDOUT
npm ERR! at errnoException (net.js:863:11)
npm ERR! at TCP.onread (net.js:524:19)
npm ERR! If you need help, you may report this log at:
npm ERR! <http://github.com/isaacs/npm/issues>
npm ERR! or email it to:
npm ERR! <npm-#googlegroups.com>
npm ERR! System Darwin 14.1.0
npm ERR! command "/Users/JianqingJiang/~/nvm/v0.10.0/bin/node" "/Users/JianqingJ
npm ERR! cwd /
npm ERR! node -v v0.10.0
npm ERR! npm -v 1.2.14
npm ERR! syscall read
npm ERR! code ETIMEDOUT
npm ERR! errno ETIMEDOUT
npm http GET https://registry.npmjs.org/abbrev
I install the git and node.js and looks good but when I want to install hexo, the error shows up.
As mentioned in the comments, full command would help. I will assume that you were doing npm install hexo...
What can be deduced here is that npm tried to obtain theabbrev package (the first dependency of hexo, btw) and the HTTP request timed out.
So you should check your network connection etc (proxies ...) and try again. I just installed here without issue.
I am trying to install ari-client,using this command:
sudo npm install ari-client
Here is the error I get:
npm http GET http://registry.npmjs.org/ari-client
npm http 304 http://registry.npmjs.org/ari-client
npm http GET http://registry.npmjs.org/swagger-client/2.0.26
npm http GET http://registry.npmjs.org/ws/0.4.31
npm http GET http://registry.npmjs.org/underscore/1.6.0
npm http GET https://registry.npmjs.org/node-uuid/-/node-uuid-1.4.1.tgz
npm http 400 https://registry.npmjs.org/node-uuid/-/node-uuid-1.4.1.tgz
npm ERR! fetch failed https://registry.npmjs.org/node-uuid/-/node-uuid-1.4.1.tgz
npm ERR! Error: 400 Bad Request
npm ERR! at WriteStream.<anonymous> (/usr/share/npm/lib/utils/fetch.js:57:12)
npm ERR! at WriteStream.EventEmitter.emit (events.js:117:20)
npm ERR! at fs.js:1601:14
npm ERR! at /usr/lib/nodejs/graceful-fs/graceful-fs.js:103:5
npm ERR! at Object.oncomplete (fs.js:107:15)
npm ERR! If you need help, you may report this log at:
npm ERR! <http://bugs.debian.org/npm>
npm ERR! or use
npm ERR! reportbug --attach /home/bzegeju/npm-debug.log npm
npm ERR! System Linux 3.11.0-26-generic
npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install" "ari-client"
npm ERR! cwd /home/bzegeju
npm ERR! node -v v0.10.15
npm ERR! npm -v 1.2.18
npm http 304 http://registry.npmjs.org/ws/0.4.31
npm http 304 http://registry.npmjs.org/underscore/1.6.0
npm http 304 http://registry.npmjs.org/swagger-client/2.0.26
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /home/bzegeju/npm-debug.log
npm ERR! not ok code 0
Any help on the error or how I can manually install the library?
For Manual installation:
1.Go to npm site search for "ari-client".
2.Click the given "github" link , from there you can download as ZIP file.
3.Extract it and use in your project
I can't install socket.IO. It's in my virtualenv, if that matters. I am learning from a blog and I have installed till Node js. But I just can't install it in my Ubuntu VM. I get this error:
(chatn)robin#robin-VirtualBox:~/webs/chatn$ sudo npm install socket.io
npm http GET http://registry/socket.io
npm http GET http://registry/socket.io
npm http GET http://registry/socket.io
npm http GET http://registry.npmjs.org/socket.io/-/socket.io-0.9.16.tgz
npm http 503 http://registry.npmjs.org/socket.io/-/socket.io-0.9.16.tgz
npm ERR! fetch failed http://registry.npmjs.org/socket.io/-/socket.io-0.9.16.tgz
npm http GET http://registry.npmjs.org/socket.io/-/socket.io-0.9.16.tgz
npm http 503 http://registry.npmjs.org/socket.io/-/socket.io-0.9.16.tgz
npm ERR! fetch failed http://registry.npmjs.org/socket.io/-/socket.io-0.9.16.tgz
npm http GET http://registry.npmjs.org/socket.io/-/socket.io-0.9.16.tgz
npm http 200 http://registry.npmjs.org/socket.io/-/socket.io-0.9.16.tgz
npm http GET http://registry/socket.io-client/0.9.16
npm http GET http://registry/policyfile/0.0.4
npm http GET http://registry/base64id/0.1.0
npm http GET http://registry/redis/0.7.3
npm http GET http://registry/socket.io-client/0.9.16
npm http GET http://registry/policyfile/0.0.4
npm http GET http://registry/redis/0.7.3
npm http GET http://registry/base64id/0.1.0
npm http GET http://registry/redis/0.7.3
npm http GET http://registry/base64id/0.1.0
npm WARN optional dep failed, continuing redis#0.7.3
npm ERR! network getaddrinfo ENOTFOUND
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.11.0-12-generic
npm ERR! command "/usr/bin/node" "/usr/bin/npm" "install" "socket.io"
npm ERR! cwd /home/robin/webs/chatn
npm ERR! node -v v0.10.26
npm ERR! npm -v 1.4.3
npm ERR! syscall getaddrinfo
npm ERR! code ENOTFOUND
npm ERR! errno ENOTFOUND
npm http GET http://registry/socket.io-client/0.9.16
npm http GET http://registry/policyfile/0.0.4
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /home/robin/webs/chatn/npm-debug.log
npm ERR! not ok code 0
I just don't know what's happening here.
Update:
Tried installing 'yeoman' but again got this message:
advenio#advenio-VirtualBox:~$ npm install -g yo
npm http GET http://registry/yo
npm http GET http://registry/yo
npm http GET http://registry/yo
npm ERR! network getaddrinfo ENOTFOUND
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.11.0-12-generic
npm ERR! command "/usr/bin/node" "/usr/bin/npm" "install" "-g" "yo"
npm ERR! cwd /home/advenio
npm ERR! node -v v0.10.26
npm ERR! npm -v 1.4.3
npm ERR! syscall getaddrinfo
npm ERR! code ENOTFOUND
npm ERR! errno ENOTFOUND
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /home/advenio/npm-debug.log
npm ERR! not ok code 0
my ubuntu12.0.4 server,
npm install error, please help me
https://github.com/ToothlessGear/node-gcm
$npm install node-gcm
npm install node-gcm
npm WARN package.json dateformat#1.0.6-1.2.3 No repository field.
npm http GET http://registry.npmjs.org/node-gcm
npm http GET http://registry.npmjs.org/node-gcm
npm http GET http://registry.npmjs.org/node-gcm
npm ERR! network getaddrinfo ENOTFOUND
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.2.0-23-virtual
npm ERR! command "/usr/bin/node" "/usr/bin/npm" "install" "node-gcm"
npm ERR! cwd /home/Tonight
npm ERR! node -v v0.10.20
npm ERR! npm -v 1.3.11
npm ERR! syscall getaddrinfo
npm ERR! code ENOTFOUND
npm ERR! errno ENOTFOUND
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /home/Tonight/npm-debug.log
npm ERR! not ok code 0
node-gcm send error > Exception during GCM request: Error: getaddrinfo ENOTFOUND
This could be a problem with your connection to the Internet. Can you try to install a different module like npm install express and also verify you are connected to the Internet with ping stackoverflow.com
You might also want to check that you are using recent versions of node and npm and even maybe reinstall if possible in case something is corrupted with your installation.
If you need to setup a proxy this link details someone with a similar error and has a good explanation of how to solve it.
From the link above you could try:
npm config set proxy http://proxy.company.com:8080
npm config set https-proxy http://proxy.company.com:8080