Installs on macOS but then "zsh: command not found: codex"
Resolved 💬 2 comments Opened Apr 16, 2025 by gonzague Closed Apr 16, 2025
Hi,
First off: thanks!
I just installed codex on my mac ( Sequoia 15.3.2 (24D81) withyarn global add @openai/codex
Which gives me :
`yarn global v1.22.22
[1/4] 🔍 Resolving packages...
[2/4] 🚚 Fetching packages...
[3/4] 🔗 Linking dependencies...
warning Workspaces can only be enabled in private projects.
[4/4] 🔨 Building fresh packages...
success Installed "@openai/codex@0.1.4161006" with binaries:
- codex
✨ Done in 0.97s.
`
But when i try to run codex in the terminal, all I get is : zsh: command not found: codex
Am I doing anything wrong?
Thank you
2 Comments
OK found the problem, I was missing npm's path in my .zshrc file.
If this happens to anyone, run
npm doctorto check what can be wrong with your install.npm doctordidn't fix it for me. I'm usingasdf. I fixed this by installing codex withbun install -g @openai/codex.