无法为量角器执行“ webdriver-manager更新”

时间:2019-04-11 05:28:21

标签: node.js proxy protractor firewall webdriver-manager

当我尝试在办公室PC中安装量角器时,我陷入了命令终端中的'webdriver-manager update'步骤。在个人笔记本电脑中尝试该命令时,我没有遇到这个障碍。抛出如下,

  

C:\ Users \ 616356> webdriver-manager更新       [10:45:09] I / config_source-curl -o C:\ Users \ 616356 \ AppData \ Roaming \ npm \ node_modules \ protractor \ node_modules \ webdriver-manager \ selenium \ standalone-response.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,但没有用,我只是不知道如何解决此问题。

1 个答案:

答案 0 :(得分:1)

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