ETIMEDOUT Error while installing Node packages on Windows

前端 未结 10 857
日久生厌
日久生厌 2020-12-03 10:18

I am trying to install node packages on my windows machine using npm from a fresh install of node.

however, I am getting ETIMEDOUT errors. I checked few other stacko

10条回答
  •  不思量自难忘°
    2020-12-03 10:54

    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 npm@3.8.0. The default is 50 simultaneous connections max. See this link for further reference.

提交回复
热议问题