I am trying to install node_module but getting following error:
For example:npm install grunt-preprocess
D:\\grunt_pre>npm install grunt-preproces
I also had ETIMEDOUT errors and was able to resolve the issue by disabling my router's firewall, rebooting it, and most importantly, configuring the number of simultaneous connections with the following npm command:
npm set maxsockets 3
This sets a max number of connections of 3, instead of the default 50. The CLI has been allowing this option since npm@3.8.0. See this link for further reference.