执行webdriver-manager更新时出错

时间:2018-03-15 10:24:07

标签: protractor angular-cli webdriver-manager

我按照如何安装量角器的说明进行操作。在执行 webdriver-manager更新时,我遇到了这种问题。

events.js:183
throw er; // Unhandled  'error' event
Error: read ECONRESET
at _ernoException<util.js:1022:11>
at TLSWrap.onread (net.js:628:25)

我支持公司代理。有人可以为此提供帮助吗?

1 个答案:

答案 0 :(得分:1)

如果您的网络支持代理,则需要告知代理webdriver-manager

选项1)在webdriver-manager CLI中指定代理

webdriver-manager update --proxy <your proxy>

这样,每次执行webdrvier-manager启动或更新

时都必须指定代理

选项2)在环境变量

中添加代理设置
HTTP_PROXY=<your proxy> 
HTTPS_PROXY=<your proxy> 
NO_PROXY=localhost, 127.0.0.1, .yourcompany.com 

通过这种方法,无需在webdriver-manager CLI中指定代理。但是,在添加代理环境变量后,在新的CMD窗口中重试。

相关问题