在Protractor中更新Webdriver时出错。
尝试使用代理设置:
tunneling socket could not be established, cause=read ECONNRESET
C:\Windows\System32>webdriver-manager update
events.js:160
throw er; // Unhandled 'error' event
^
Error: tunneling socket could not be established, cause=read ECONNRESET
at ClientRequest.onError (C:\Users\a655086\AppData\Roaming\npm\node_modules\
protractor\node_modules\tunnel-agent\index.js:177:17)
at ClientRequest.g (events.js:292:16)
at emitOne (events.js:96:13)
at ClientRequest.emit (events.js:188:7)
at TLSSocket.socketErrorListener (_http_client.js:310:9)
at emitOne (events.js:96:13)
at TLSSocket.emit (events.js:188:7)
at emitErrorNT (net.js:1277:8)
at _combinedTickCallback (internal/process/next_tick.js:80:11)
at process._tickCallback (internal/process/next_tick.js:104:9)
C:\Windows\System32>
系统信息:
量角器版本:5.2.0
npm版本:3.10.10
mvn版本:3.5.2
错误:
nextgroup=...
答案 0 :(得分:0)
看起来像this的副本。在您在OP中提到的尝试中,我在http之后看不到://
。另请注意,即使对于https-proxy,协议也是http而不是https。如果您不在任何代理之后,则需要按照linked answer
npm config set proxy http://proxyhost:proxyport
npm config set https-proxy http://proxyhost:proxyport
答案 1 :(得分:0)
使用以下命令
以管理员身份运行cmd解决了该问题 npm config set proxy false
npm cache clean
然后重启cntlm服务
Webdriver-manager update