This question already has an answer here:
I've installed truffle and related software on my office PC. I've set the proxy server for node.js.
truffle init got the following error. Is it proxy issue?
H:\work\eth> truffle.cmd init events.js:160 throw er; // Unhandled 'error' event ^ Error: read ECONNRESET at exports._errnoException (util.js:1018:11) at TLSWrap.onread (net.js:568:26)