Codex CLI fails to start on Linux x64 with "Missing optional dependency @openai/codex-linux-x64" when running codex resume
What version of Codex CLI is running?
Unable to run because the CLI exits before printing a version. Installed via npm global package @openai/codex. Node.js reports v24.12.0. Run "npm ls -g --depth=0 @openai/codex", the result is "@openai/codex@0.111.0"
What subscription do you have?
ChatGPT Plus
Which model were you using?
gpt-5.4
What platform is your computer?
Linux 6.6.87.2-microsoft-standard-WSL2 x86_64 x86_64
What terminal emulator and version are you using (if applicable)?
wsl
What issue are you seeing?
``` bash
file:///home/<user>/.nvm/versions/node/v24.12.0/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/<user>/.nvm/versions/node/v24.12.0/lib/node_modules/@openai/codex/bin/codex.js:100:11
at ModuleJob.run (node:internal/modules/esm/module_job:413:25)
at async onImport.tracePromise.__proto__ (node:internal/modules/esm/loader:660:26)
at async asyncRunEntryPointWithESMLoader (node:internal/modules/run_main:101:5)
Node.js v24.12.0
### What steps can reproduce the bug?
```bash
Updating Codex via `npm install -g @openai/codex`...
changed 2 packages in 33s
npm notice
npm notice New minor version of npm available! 11.6.2 -> 11.11.0
npm notice Changelog: https://github.com/npm/cli/releases/tag/v11.11.0
npm notice To update run: npm install -g npm@11.11.0
npm notice
After updating codex, the issue occurs.
What is the expected behavior?
codex starts normally
Additional information
Codex CLI previously worked normally on the same machine and in the same environment. This failure began only after updating: "11.6.2 -> 11.11.0"
Node.js version is v24.12.0.
It did not work after reinstall by commands below.
npm uninstall -g @openai/codex
npm cache clean --force
rm -rf ~/.nvm/versions/node/v24.12.0/lib/node_modules/@openai/codex
rm -rf ~/.nvm/versions/node/v24.12.0/bin/codex
npm install -g @openai/codex@latest --include=optional
codex --versionThis issue has 2 comments on GitHub. Read the full discussion on GitHub ↗