Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
ETIMEOUT errors during install while non-root #610
Fresh install of node v0.4.0 under Centos as non-root user (tab). Node works fine. Downloaded install.sh for npm and:
I don't use sudo, nor do I need to. My entire installation is done as a non-root user and there is absolutely no reason to escalate permissions. Assume for the moment I don't even have any kind of root access.
I was able to get npm installed by changing to the unarchived directory it put in /tmp during the failed install and running:
Then I did:
Then I tried:
So what the hell's going on? Why can't this be simple?
Proxies are supported, but it's possible that something broke in the transition to the new HTTP client api. (Required a significant rewrite.)
It shouldn't be using https by default. It could be set that way in your ~/.npmrc file.
Can you try doing this?
I've now set HTTPS_PROXY as described in the curl man page and I can almost connect:
Any ideas? Does npm use the https URL? Can that be changed in the config somehow to use the http URL?
I had a chance to run in debug mode as you directed. Not too much output:
It's not clear what URL it's trying to get.
According to npm help config, the default registry setting is indeed "https://registry.npmjs.org/". I changed it to non-SSL, but I'm getting the same error as above.
And just to be sure, I also tried setting the proxy config rather than rely on the environment variable, and I still get the same error.