codex icon indicating copy to clipboard operation
codex copied to clipboard

ERROR crypto is not defined

Open rossbu opened this issue 1 year ago • 3 comments

What version of Codex is running?

(research preview) v0.1.2504301751

Which model were you using?

No response

What platform is your computer?

macos

What steps can reproduce the bug?

codex "explain this codebase to me"

What is the expected behavior?

simply error with npm 18.x

What do you see instead?

ERROR crypto is not defined

file:///Users/xxxx/.nvm/versions/node/v18.20.7/lib/node_modules/@openai/codex/dist/cli.js:581:1999

Additional information

No response

rossbu avatar May 10 '25 19:05 rossbu

Hello, I also had this bug and I used the wrong NPM Version I think. Try it with NPM 21

ogalbnafets avatar May 11 '25 10:05 ogalbnafets

@rossbu , In Readme , there is system requirement section and it says

Node.js 22 or newer (LTS recommended)

Please upgrade to node.js 22 or higher stable version

jk-codertech avatar May 12 '25 13:05 jk-codertech

Thanks for the feedback! Please try using the latest version of Codex CLI. We're focusing on the native/Rust implementation, which may resolve this issue. Let us know if the problem persists!

codex-maintainers avatar Aug 07 '25 17:08 codex-maintainers