Can't initialize codex CLI

Resolved 💬 1 comment Opened Dec 24, 2025 by Mukhsin0508 Closed Dec 24, 2025

What version of Codex is running?

can't see

What subscription do you have?

API

Which model were you using?

N/A

What platform is your computer?

MacOS

What issue are you seeing?

 -> $ codex
file:///usr/local/lib/node_modules/@openai/codex/bin/codex.js:161
const childResult = await new Promise((resolve) => {
                    ^^^^^

SyntaxError: Unexpected reserved word
    at Loader.moduleStrategy (internal/modules/esm/translators.js:133:18)
    at async link (internal/modules/esm/module_job.js:42:21)
 -> $ codex --version
file:///usr/local/lib/node_modules/@openai/codex/bin/codex.js:161
const childResult = await new Promise((resolve) => {
                    ^^^^^

SyntaxError: Unexpected reserved word
    at Loader.moduleStrategy (internal/modules/esm/translators.js:133:18)
    at async link (internal/modules/esm/module_job.js:42:21)

What steps can reproduce the bug?

sudo npm i -g @openai/codex

run codex

What is the expected behavior?

.

Additional information

.

View original on GitHub ↗

This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗