ETIMEDOUT Error while installing Node packages on Windows

前端 未结 10 873
日久生厌
日久生厌 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 11:03

    I was not able to install any packages before because of this error then after 1 hour, I finally resolved it because I was not behind a proxy but the proxy parameters got set in the npm config thats why that error was showing.

    I'am posting it because if anyone is facing the same issue and if they are not behind any proxy then they can use the following commands:-

    npm config rm proxy

    npm config rm https-proxy

    npm config delete http-proxy

    npm config delete https-proxy

    set HTTP_PROXY=null

    set HTTPS_PROXY=null

提交回复
热议问题