Protractor webdriver-manager update occurs events.js:161 - Error: connect ETIMEDOUT

Protractor webdriver-manager update occurs events.js:161 - Error: connect ETIMEDOUT

我安装了 npm install protractor -g 然后尝试更新 使用命令 "webdriver-manager update" 的 webdriver-manager 出现: enter image description here

如果我尝试使用命令 "webdriver-manager start" 启动 webdriver-manager,它说,"Selenium Standalone is not present. Install with webdriver-manager update --standalone" 这是安装教程:http://www.protractortest.org/#/tutorial

我不知道该怎么办,你能帮帮我吗?

WebDriver Manager 在 update 下载基本驱动程序。不确定你是 运行 它来自 docker 容器、vagrant VM 还是在 VPN 中。

它从以下来源下载,屏幕截图中的 IP 地址表明您在连接 https://github.com/mozilla 时遇到问题。 ping github 我看到相同的 IP。

来源:来自webdriver-manager configs

  "cdnUrls": {
    "selenium": "https://selenium-release.storage.googleapis.com/",
    "chromedriver": "https://chromedriver.storage.googleapis.com/",
    "geckodriver": "https://github.com/mozilla/geckodriver/releases/download/",
    "iedriver": "https://selenium-release.storage.googleapis.com/",
    "androidsdk": "http://dl.google.com/android/"
  }

您能否按如下所示 ping 并查看是否能够从您执行 webdriver-manager update[=16 的位置手动访问上述来源(Chrome & seleniumServer & Gecko) =]

C:\Users\<<>>\WebstormProjects\demo>ping github.com

Pinging github.com [192.30.253.112] with 32 bytes of data:
Reply from 192.30.253.112: bytes=32 time=207ms TTL=47
Reply from 192.30.253.112: bytes=32 time=205ms TTL=47
Reply from 192.30.253.112: bytes=32 time=205ms TTL=47
Reply from 192.30.253.112: bytes=32 time=205ms TTL=47

Ping statistics for 192.30.253.112:
    Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
    Minimum = 205ms, Maximum = 207ms, Average = 205ms