0

当我尝试在我的办公室 PC 上安装量角器时,我卡在命令终端中的“webdriver-manager update”步骤中。当我在我的个人笔记本电脑上尝试该命令时,我没有遇到这个障碍。抛出的错误是以下,

C:\Users\616356>webdriver-manager update [10:45:09] I/config_source - curl -o C:\Users\616356\AppData\Roaming\npm\node_modules\protractor\node_modules\webdriver-manager\selenium\独立响应 .xml https://selenium-release.storage.googleapis.com/ [10:45:09] I/config_source - curl -o C:\Users\616356\AppData\Roaming\npm\node_modules\protractor\ node_modules\webdriver-manager\selenium\chrome-response.xml https://chromedriver.storage.googleapis.com/ [10:45:09] I/config_source - curl -o C:\Users\616356\AppData\Roaming\ npm\node_modules\protractor\node_modules\webdriver-manager\selenium\gecko-response.json https://api.github.com/repos/mozilla/geckodriver/releases events.js:165 抛出错误;// 未处理的“错误”事件 ^

Error: connect ECONNREFUSED 172.217.166.112:443
    at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1174:14)
Emitted 'error' event at:
    at Request.onRequestError (C:\Users\616356\AppData\Roaming\npm\node_modules\protractor\node_modules\request\request.js:881:8)
    at ClientRequest.emit (events.js:185:15)
    at TLSSocket.socketErrorListener (_http_client.js:395:9)
    at TLSSocket.emit (events.js:180:13)
    at emitErrorNT (internal/streams/destroy.js:64:8)
    at process._tickCallback (internal/process/next_tick.js:178:19)

我认为问题可能与某些防火墙或代理问题有关。我尝试在代理例外中添加 172.217.166.112,但没有成功。我只是不知道如何解决此问题。任何建议将不胜感激。

4

1 回答 1

1

像这样的例子 webdriver-manager update --proxy http://TPESproxy.galileo.corp.lcl:8980

于 2019-04-11T10:31:16.927 回答