ETIMEDOUT Error while installing Node packages on Windows

前端 未结 10 872
日久生厌
日久生厌 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:58

    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
    

提交回复
热议问题