title: Protractor Webdriver update error : tunneling socket could not be established, cause=read ECONNRESET
body: <p>Getting error while updating Webdriver in Protractor. </p>
  
  <p>Tried with proxy setting:</p>
  
  <pre><code>npm config set proxy http:Proxy:port
  
  npm config set http_proxy http:Proxy:port
  
  npm config set https_proxy https:Proxy:port
  </code></pre>
  
  <p>System info:</p>
  
  <blockquote>
    <p>Protractor version:5.2.0</p>
    
    <p>npm version:3.10.10</p>
    
    <p>mvn version: 3.5.2</p>
  </blockquote>
  
  <p>Error:</p>
  
  <pre><code>tunneling socket could not be established, cause=read ECONNRESET 
  
  C:\Windows\System32&gt;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&gt;
  </code></pre>