npm install fails due to ENOTFOUND errors

Resolved 💬 2 comments Opened Feb 4, 2026 by adiachenko Closed Feb 18, 2026

What version of the Codex App are you using (From “About Codex” dialog)?

260203.1501 (523)

What subscription do you have?

ChatGPT Plus

What issue are you seeing?

npm install fails due to ENOTFOUND errors

npm error code ENOTFOUND
npm error syscall getaddrinfo
npm error errno ENOTFOUND
npm error network request to https://registry.npmjs.org/@astrojs%2fstarlight failed, reason: getaddrinfo ENOTFOUND registry.npmjs.org
npm error network This is a problem related to network connectivity.
npm error network In most cases you are behind a proxy or have bad network settings.
npm error network
npm error network If you are behind a proxy, please make sure that the
npm error network 'proxy' config is set properly.  See: 'npm help config'
npm error Log files were not written due to an error writing to the directory: /Users/adiachenko/.npm/_logs
npm error You can rerun the command with `--loglevel=verbose` to see the logs in your terminal

What steps can reproduce the bug?

The issue is only reproducible in the Codex App. No errors in Codex CLI.

Ensure the packages aren't fetched from npm cache before trying to reproduce the bug:

npm cache clean --force

What is the expected behavior?

npm install completes without network errors

Additional information

~/.codex/config.toml

model = "gpt-5.2-codex"
model_reasoning_effort = "medium"
sandbox_mode = "workspace-write"
approval_policy = "on-request"
web_search = "live"
personality = "pragmatic"

[sandbox_workspace_write]
network_access = true

Tried giving sandbox_mode = "danger-full-access" as well, didn't fix the issue.

View original on GitHub ↗

This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗