ECONNRESET 📦 npm

npm ERR! code ECONNRESET — network aborted / socket hang up

The connection to the registry was reset mid-download.

Seen on: npm

Meaning

Unstable networks, proxies closing connections, or too many parallel downloads.

Common causes

  • Unstable connection
  • Proxy/antivirus resetting connections
  • Too many concurrent sockets

⚡ Quick fix

  1. Retry
  2. Lower concurrency: npm config set maxsockets 5
  3. Configure proxy properly

Detailed fix by platform

npm

  1. npm config set maxsockets 5

How to diagnose

  1. Network — Proxy/VPN?
  2. Recent change — Did it start after a deploy, upgrade, or configuration change? Compare with the last working version.

🧠 Still stuck? Analyze your error

Paste the full message, response headers or stack trace — we'll detect the platform and point to the most likely cause.