npm ERR! code ETIMEDOUT — network request to https://registry.npmjs.org/x failed, reason: connect ETIMEDOUT
npm couldn’t reach the registry in time — network, proxy or firewall issue.
Seen on:
npm
Meaning
Proxies not configured, IPv6 routing problems, VPNs or a slow mirror. npm retries a few times before failing.
Common causes
- Proxy required but not configured
- Firewall blocking registry
- IPv6 connectivity issues
- Flaky network
⚡ Quick fix
- Configure proxy: npm config set proxy/https-proxy
- Increase fetch timeouts/retries
- Try another network or registry mirror
Detailed fix by platform
npm
npm config set fetch-retries 5 && npm config set fetch-retry-maxtimeout 120000
How to diagnose
- Network — Can curl reach the registry?
- Proxy — Needed?
🧠 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