How do I debug error ECONNRESET in Node.js?

后端 未结 14 1531
刺人心
刺人心 2020-11-22 04:02

I\'m running an Express.js application using Socket.io for a chat webapp and I get the following error randomly around 5 times during 24h. The node process is wrapped in for

14条回答
  •  感动是毒
    2020-11-22 04:29

    I had resolved this problem by:

    • Turning off my wifi/ethernet connection and turn on.
    • I typed: npm update in terminal to update npm.
    • I tried to log out from the session and log in again

    After that I tried the same npm command and the good thing was it worked out. I wasn't sure it is that simple.

    I am using CENTOS 7

提交回复
热议问题