npm 请求失败,原因:连接 ETIMEDOUT 104.16.16.35:443

问题描述 投票:0回答:1

我们正在尝试让 npm 在 Windows Server 2019 上运行。

服务器配置如下:

  • 服务器在 ESX VMWare 环境中作为来宾运行。
  • 服务器在检查点防火墙和 ClearSwift 代理后面运行(多个防病毒引擎处于活动状态)。
  • F5 负载平衡反向代理通过 DNS 在 MSM 网络内部运行。
  • 服务器正在运行 Bitdefender AntiVirus
  • 服务器以Windows2019当前补丁状态运行。

当前防火墙设置:

  • 所有拒绝局域网>内联网
  • 所有拒绝内联网> LAN

无论我们尝试什么,我们总是会收到此错误:

这是我们迄今为止尝试过的:

npm config set registry "http://registry.npmjs.org/"
ping proxy
npm config set proxy https-proxy http://proxy.johndoe.corp:8080
npm config set https-proxy http://proxy.johndoe.corp:8080
npm config set strict-ssl false
set HTTPS_PROXY=http://proxy.johndoe.corp:8080
set HTTP_PROXY=http://proxy.johndoe.corp:8080

npm --proxy  http://proxy.johndoe.corp:8080 --without-ssl --insecure -g install

npm install --global [email protected]

我们总是收到 ETIMEDOUT 错误,并且我无法在互联网上找到正确的解决方案。

如有任何帮助,我们将不胜感激!

node.js npm proxy settings windows-server-2019
1个回答
0
投票

代理存在一些错误。 我也遇到这个错误

© www.soinside.com 2019 - 2024. All rights reserved.