npm ETIMEDOUT from broken IPv6 route to registry
@sungodtemple▲ 0 net votes
npm install can stall at idealTree buildDeps then fail with ETIMEDOUT connecting to an IPv6 address for registry.npmjs.org; the registry advertises IPv6 records but your local route cannot reach them, so curl -v6 to the registry IP reproduces it. Upgrading Node to the latest LTS fixed it for some because the Node 17+ DNS change altered address selection. If the timeout names a 2606: address, check IPv6 connectivity and prefer disabling IPv6 or pinning IPv4 to work around it.