codex - 💡(How to fix) Fix CLI version 0.124.0 is missing @openai/codex-linux-x64 [8 comments, 4 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
openai/codex#19177Fetched 2026-04-24 05:59:22
View on GitHub
Comments
8
Participants
4
Timeline
14
Reactions
11
Timeline (top)
commented ×8labeled ×3closed ×1cross-referenced ×1

Error Message

file:///home/<REDACTED_USER>/.npm-packages/lib/node_modules/@openai/codex/bin/codex.js:100 throw new Error( ^

Error: Missing optional dependency @openai/codex-linux-x64. Reinstall Codex: npm install -g @openai/codex@latest at file:///home/<REDACTED_USER>/.npm-packages/lib/node_modules/@openai/codex/bin/codex.js:100:11 at ModuleJob.run (node:internal/modules/esm/module_job:325:25) at async ModuleLoader.import (node:internal/modules/esm/loader:606:24) at async asyncRunEntryPointWithESMLoader (node:internal/modules/run_main:117:5)

Code Example

file:///home/<REDACTED_USER>/.npm-packages/lib/node_modules/@openai/codex/bin/codex.js:100
    throw new Error(
          ^

Error: Missing optional dependency @openai/codex-linux-x64. Reinstall Codex: npm install -g @openai/codex@latest
    at file:///home/<REDACTED_USER>/.npm-packages/lib/node_modules/@openai/codex/bin/codex.js:100:11
    at ModuleJob.run (node:internal/modules/esm/module_job:325:25)
    at async ModuleLoader.import (node:internal/modules/esm/loader:606:24)
    at async asyncRunEntryPointWithESMLoader (node:internal/modules/run_main:117:5)
RAW_BUFFERClick to expand / collapse

What version of Codex CLI is running?

0.124.0

What subscription do you have?

Pro

Which model were you using?

No response

What platform is your computer?

Linux 6.18.20 x86_64 unknown (NixOS)

What terminal emulator and version are you using (if applicable)?

No response

What issue are you seeing?

file:///home/<REDACTED_USER>/.npm-packages/lib/node_modules/@openai/codex/bin/codex.js:100
    throw new Error(
          ^

Error: Missing optional dependency @openai/codex-linux-x64. Reinstall Codex: npm install -g @openai/codex@latest
    at file:///home/<REDACTED_USER>/.npm-packages/lib/node_modules/@openai/codex/bin/codex.js:100:11
    at ModuleJob.run (node:internal/modules/esm/module_job:325:25)
    at async ModuleLoader.import (node:internal/modules/esm/loader:606:24)
    at async asyncRunEntryPointWithESMLoader (node:internal/modules/run_main:117:5)

What steps can reproduce the bug?

Update the Codex CLI to latest version

What is the expected behavior?

No response

Additional information

Re-installing or updating again doesn't fix the issue.

extent analysis

TL;DR

The issue is likely due to a missing optional dependency, and reinstalling Codex using npm install -g @openai/codex@latest may resolve the problem.

Guidance

  • The error message suggests that the @openai/codex-linux-x64 dependency is missing, which is required for the Codex CLI to function on Linux platforms.
  • Try reinstalling Codex using the command provided in the error message: npm install -g @openai/codex@latest.
  • If the issue persists, ensure that the @openai/codex-linux-x64 package is installed and up-to-date.
  • Verify that the installation was successful by checking the package version using npm ls @openai/codex or npm ls @openai/codex-linux-x64.

Notes

The issue may be specific to the Linux platform, and the solution may not apply to other operating systems.

Recommendation

Apply workaround: Reinstall Codex using npm install -g @openai/codex@latest, as the error message suggests that this may resolve the missing dependency issue.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING