You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Windows global npm install misses optional @openai/codex-win32-x64; codex fails to start #12931
After npm global install on Windows, Codex should automatically include the matching platform binary optional
dependency so '' codex --version ''runs without manual alias installation.
Additional information
Working workaround was to install with explicit alias: $v = npm view @openai/codex version npm install -g "@openai/codex@$v" "@openai/codex-win32-x64@npm:@openai/codex@$v-win32-x64"
After workaround:
codex --version -> codex-cli 0.105.0
npm ls -g --depth=0 @openai/codex @openai/codex-win32-x64 shows both installed.
This method itself is good, but I found that the latest 0.120.0 version shows "No matching version found for @openai/[email protected]" when executing npm install -g "@openai/codex-win32-x64@npm:@openai/[email protected]".
I encountered exactly the same problem as you, and the final solution was also to downgrade. Apparently, there was some mistake made by the OpenAI employees responsible for Codex updates. It's probably best to wait until the next update before trying to install it again. Should we file a new issue? But I have a feeling it will be marked as a duplicate. However, considering that such a simple problem can be submitted repeatedly so many times, it shows the carelessness of the maintainers.
Activity
github-actions commentedon Feb 26, 2026
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
joelkehle commentedon Feb 26, 2026
Closing as duplicate of #11744.
I can confirm the same Windows global npm install/startup error on codex-cli 0.105.0:
“Missing optional dependency @openai/codex-win32-x64”.
Workaround that succeeded for me:
$v = npm view @openai/codex version
npm install -g "@openai/codex@$v" "@openai/codex-win32-x64@npm:@openai/codex@$v-win32-x64"
CoolCoolTomato commentedon Mar 11, 2026
it works!
DINGYURS commentedon Apr 11, 2026
This method itself is good, but I found that the latest 0.120.0 version shows "No matching version found for @openai/[email protected]" when executing npm install -g "@openai/codex-win32-x64@npm:@openai/[email protected]".
DINGYURS commentedon Apr 11, 2026
现在我不得不安装 0.119.0 这样可以正常使用
Now I have to install 0.119.0 so it can be used normally
ydrk12 commentedon Apr 11, 2026
我和你遇到了完全一样的问题,最终的解决方案也是降级。显然openai负责codex更新的员工出了些差错,最好还是等到下个更新再尝试安装吧。要不要提一个新的issue?但总感觉会被判定为重复issue。不过说起来,这么简单的问题能被重复提交这么多次,也可见维护者的疏忽大意。
I encountered exactly the same problem as you, and the final solution was also to downgrade. Apparently, there was some mistake made by the OpenAI employees responsible for Codex updates. It's probably best to wait until the next update before trying to install it again. Should we file a new issue? But I have a feeling it will be marked as a duplicate. However, considering that such a simple problem can be submitted repeatedly so many times, it shows the carelessness of the maintainers.