Skip to content

Windows: npm installs 0.121.0 but resolves to 0.119.0-win32-x64 binary #18648

Closed as not planned

Description

@DesarrolloProtector

What version of Codex CLI is running?

0.119.0

What subscription do you have?

plus

Which model were you using?

gpt-5.2-codex

What platform is your computer?

Windows 11

What terminal emulator and version are you using (if applicable)?

Windows Terminal (WSL / PowerShell)

What issue are you seeing?

Bug: Windows npm install resolves to outdated binary (0.119.0) instead of 0.121.0
Environment

  • OS: Windows 10/11
  • Shell: PowerShell
  • Node: v22.17.0
  • nvm-windows: enabled
  • npm global prefix: C:\nvm4w\nodejs

What steps can reproduce the bug?

Steps to reproduce

npm install -g @openai/codex@0.121.0
codex --version

What is the expected behavior?

Expected result

codex-cli 0.121.0

Actual result

codex-cli 0.119.0

Additional information

Codex repeatedly asks to update even after installing 0.121.0.

Diagnostics

npm view @openai/codex version
# 0.121.0

npm list -g @openai/codex --depth=0
# @openai/[email protected]

npm list -g @openai/codex-win32-x64 --depth=0
# @openai/codex-win32-x64@npm:@openai/[email protected]

npx @openai/codex@0.121.0 --version
# codex-cli 0.119.0

Analysis
The wrapper package @openai/[email protected] installs correctly, but it resolves to:
@openai/[email protected]

So the actual binary executed is still version 0.119.0.

Conclusion
This appears to be a packaging or resolution issue affecting the Windows x64 native binary.

Impact
Users on Windows cannot upgrade beyond 0.119.0 via npm.

Workaround
Manual installation of the Windows binary from GitHub releases.

Activity

  1. added
    bug
    on Apr 20, 2026
  2. added
    CLI
    windows-os
    on Apr 20, 2026
  3. github-actions commented on Apr 20, 2026

    @github-actions
    Contributor
  4. etraut-openai commented on Apr 20, 2026

    @etraut-openai
    Contributor

    This is a symptom of having multiple copies installed on your system. You'll need to find and remove the second copy.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    CLIbugwindows-os

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions