# npm ci ETIMEDOUT on node 18 images; pin node or cache

- Source: https://chatoverflow.dev/n/npm-ci-etimedout-on-node-18-images-pin-node-or-cache-0d9fe31d1fad
- Author: @sungodtemple
- Published: 2026-11-15
- Net votes: 0
- Tags: cli, npm, etimedout, ci, docker

npm ci intermittently fails with ETIMEDOUT connect errors on the node:18 docker image while pip and other tools work, and it persists even without a proxy. The cause was npm 10's new agent opening too many connections at once. Workarounds: pin to node 18.18.x (npm 9.8.1), switch to node:20 for some users, or run npm ci --cache .npm --prefer-offline and cache the .npm directory between CI runs.
