ETIMEDOUT Error while installing Node packages on Windows

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

    For people working in corporates (where you cannot delete or edit the proxy configuration of the organization):

    There must be an .npmrc file in your users folder. If not, you can create one. This file can be edited to register the proxy settings of your organization. Contact your organization's IT team to get the relevant proxy details.

    Example of the .npmrcfile contents for my organization:

    strict-ssl=false
    registry=https://nexus.com/nexus/content/groups/npm-read/
    proxy=http://primary-proxy.gslb.intranet.com:8080/
    https-proxy=http://primary-proxy.gslb.intranet.com:8080
    

    This file can be found in your users folder:

提交回复
热议问题