TLSWrap.onStreamRead (internal/stream_base_commons.js:111:27)

When run the truffle init or truffle unbox, it’s giving this error.

Background install the node js, install npm and then install truffle. 

After that create directoty and run the truffle init in that directory. 

√ Preparing to download
/ DownloadingError: read ECONNRESET
at TLSWrap.onStreamRead (internal/stream_base_commons.js:111:27)

Can you help me to get rid of this error. 

npm 6.4.1

node v10.15.3

truffle v5.0.16

Hi @balabcc!

I’ve moved your post into the Programming Help and Discussion board where I think that you’ll get better help. Could you please give some additional background as to what you’re trying to accomplish? The more details surrounding the issue that you’re having, the more likely it will be that someone can help you.


I’m getting the same error.  Some reading around for me has suggested manually creating the items would solve the issue, but I hate when things are working as expected.

Have you seen any resolution?

run these commands and see:
​_npm config set registry
npm uninstall -g truffle 
npm install -f truffle
and then
truffle init
It’s worked for me, hope it works for you too.