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
- Retry
- Lower concurrency: npm config set maxsockets 5
- Configure proxy properly
Detailed fix by platform
npm
npm config set maxsockets 5
How to diagnose
- Network — Proxy/VPN?
- 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.
Was this page helpful?
Report a correction or suggest an improvement
Last updated 2 Oct 2026