Skip to content
This repository has been archived by the owner on Aug 11, 2022. It is now read-only.

Unable to install npm packages #4423

Closed
ckakela opened this issue Jan 6, 2014 · 4 comments
Closed

Unable to install npm packages #4423

ckakela opened this issue Jan 6, 2014 · 4 comments

Comments

@ckakela
Copy link

ckakela commented Jan 6, 2014

I have installed node.js v0.10.24,
but while installing any package using npm install

npm ERR! Error: getaddrinfo EAGAIN
npm ERR! at errnoException (dns.js:37:11)
npm ERR! at Object.onanswer as oncomplete
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

error comes on the command line, I am trying to resolve but no success.

@robertkowalski
Copy link
Contributor

Seems like a network/dns problem, can you check your dns/network settings?

@ckakela
Copy link
Author

ckakela commented Jan 7, 2014

I set the .npmrc file with the proxy settings as

registry = http://registry.npmjs.org/
proxy = http://proxy.tcs.com:8080/
strict-ssl = false
https-proxy = http://userid:Password@ip:port

but it doesn't work
and some proxy error is comming as

npm ERR! Error: connect ECONNREFUSED
npm ERR! at errnoException (net.js:901:11)
npm ERR! at Object.afterConnect as oncomplete
npm ERR! { [Error: connect ECONNREFUSED]
npm ERR! code: 'ECONNREFUSED',
npm ERR! errno: 'ECONNREFUSED',
npm ERR! syscall: 'connect' }
npm ERR!
npm ERR! If you are behind a proxy, please make sure that the
npm ERR! 'proxy' config is set properly. See: 'npm help config'

@timoxley
Copy link
Contributor

timoxley commented Jan 7, 2014

@ckakela Did you sort this out? Can this be closed?
#4430

@ckakela
Copy link
Author

ckakela commented Jan 8, 2014

no it was not network/dns problem, the problem was due to the proxy setting error as ssl was set to false so the proxy was not working.......................now its working fine

Thanks for ur help and support

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants