not able to install node_modules

前端 未结 5 1641
我在风中等你
我在风中等你 2021-01-02 04:06

I am trying to install node_module but getting following error:

For example:npm install grunt-preprocess

D:\\grunt_pre>npm install grunt-preproces         


        
5条回答
  •  庸人自扰
    2021-01-02 05:00

    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.

提交回复
热议问题