#Codex gets EHOSTUNREACH when attempting to install npm packages in its workspace

1 messages · Page 1 of 1 (latest)

jade pulsarBOT
#

Reported by @cold hull

Bug Report: Codex gets EHOSTUNREACH when attempting to install npm packages in its workspace
`Steps to Reproduce`

Asked Codex to work on my simple npm repo: https://github.com/rictic/jsonriver

`Expected Result`

It could install packages from npm so that it could build and test the package.

`Actual Result`

Installing packages fails, apparently because it's unable to connect to the npm package registry.

#
Additional Information

Please provide relevant details to help resolve the issue, such as:

  • ChatGPT Shared Link (if applicable).
  • Screenshots or videos demonstrating the problem.

-# ➜ Need to contact support? Visit the OpenAI Help Center.

cold hull
#

logs from the npm ci run:

root@d7e0710b5260:/workspace/jsonriver# tail -n 20 /root/.npm/_logs/2025-05-17T1
8_06_32_860Z-debug-0.log
1338 http fetch GET https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-6.2.0.tgz a
ttempt 3 failed with EHOSTUNREACH
1339 http fetch GET https://registry.npmjs.org/yocto-queue/-/yocto-queue-1.1.1.t
gz attempt 3 failed with EHOSTUNREACH
1340 http fetch GET https://registry.npmjs.org/wireit/-/wireit-0.14.9.tgz attemp
t 3 failed with EHOSTUNREACH
1341 http fetch GET https://registry.npmjs.org/widest-line/-/widest-line-5.0.0.t
gz attempt 3 failed with EHOSTUNREACH
1342 http fetch GET https://registry.npmjs.org/which/-/which-1.3.1.tgz attempt 3
 failed with EHOSTUNREACH
1343 http fetch GET https://registry.npmjs.org/when-exit/-/when-exit-2.1.3.tgz a
ttempt 3 failed with EHOSTUNREACH
1344 http fetch GET https://registry.npmjs.org/validate-npm-package-license/-/va
lidate-npm-package-license-3.0.4.tgz attempt 3 failed with EHOSTUNREACH
1345 http fetch GET https://registry.npmjs.org/wcwidth/-/wcwidth-1.0.1.tgz attem
pt 3 failed with EHOSTUNREACH
1346 http fetch GET https://registry.npmjs.org/validate-npm-package-name/-/valid
ate-npm-package-name-5.0.1.tgz attempt 3 failed with EHOSTUNREACH
1347 http fetch GET https://registry.npmjs.org/util-deprecate/-/util-deprecate-1
.0.2.tgz attempt 3 failed with EHOSTUNREACH
1348 verbose cwd /workspace/jsonriver
1349 verbose os Linux 6.12.13
1350 verbose node v22.15.1
1351 verbose npm  v10.9.2
1352 error Exit handler never called!
1353 error This is an error with npm itself. Please report this error at:
1354 error   <https://github.com/npm/cli/issues>
1355 verbose exit 1
#

There's nothing unusual about my npm setup. This seems like an issue with Codex's workspace environment

ionic hare
#

the VMs do not have internet connectivity after the initial setup script was run.

that said, I very frequently get the same results within the setup steps

cold hull
#

oh I see, it's under advanced in the environment setup