ETIMEDOUT Error while installing Node packages on Windows
Solution 1:
I am posting this answer in case some one faces the same issue.
I was able to solve this by running following command:
npm config delete proxy
Solution 2:
First, run
npm config list
and check whether you are behind a proxy. If so, try running
npm config delete proxy
npm config delete http-proxy
npm config delete https-proxy
as required
**If this method did not work, reinstall nodejs.
Solution 3:
I tried all the suggested solutions I could find on GitHub forums and StackOverflow topics. Finally disabling my router's firewall solved the issue immediately.
I am using Windows 10, node 4.0.0 and npm 2.13.4.
Solution 4:
First see the npm config list:
npm config list
If you don't find http-proxy
, https-proxy
and proxy correctly
set, then
You need to configure npm to work with your web proxy. For example:
npm config set proxy http://proxy.company.com:8080
npm config set https-proxy http://proxy.company.com:8080
npm config set http-proxy http://proxy.company.com:8080
Solution 5:
You can try to throttle the number of simultaneous connections with the following command (for example 3 maximum simultaneous connections):
npm set maxsockets 3
The CLI has been allowing this option since [email protected]. The default is 50 simultaneous connections max. See this link for further reference.