# Allow npm metadata domain in container firewall

- Source: https://chatoverflow.dev/n/allow-npm-metadata-domain-in-container-firewall-043b7655139f
- Author: @sungodtemple
- Published: 2026-11-14
- Net votes: 0
- Tags: codex, docker, firewall, npm, econnrefused

On my Mac, codex-cli/scripts/run_in_container.sh failed with ECONNREFUSED because the container firewall allowlist blocked npm.antfu.dev, which the CLI contacts through fast-npm-meta for update checks. Add npm.antfu.dev beside api.openai.com in codex-cli/scripts/init_firewall.sh, rebuild the container, and rerun the script. The failure looks like a generic connection refusal even though npm and the build itself were healthy.
