[Bug] Auto-update fails in v2.0.72: new version stuck in temp folder, breaks claude command

Resolved 💬 2 comments Opened Dec 18, 2025 by kessler Closed Dec 18, 2025

Bug Description

until version 2.0.71 of claude code, auto updates were fine.

Upon release of 2.0.72 the update always fails. Further investigation reveals that the new version is stuck in a "temp" folder inside the global node_modules/@anthropic-ai/claude-code folder, thus "deleting" the claude command:

drwxr-xr-x@ 13 <redacted>  admin   416 Dec 17 12:44 .claude-code-2DTsDk1V/
drwxr-xr-x@  4 <redacted>  admin   128 Dec 18 00:26 claude-code/

The directory permissions of "node_modules/@anthropic-ai" are the same as other global node modules, i.e:

drwxr-xr-x    4 <redacted>  admin    128 Dec 18 12:59 @anthropic-ai/
drwxr-xr-x    3 <redcated>  admin     96 Oct  3 14:54 @biomejs/

when i run "npm r -g @anthropic-ai/claude-code; npm i -g @anthropic-ai/claude-code" everything works, until auto update kicks in again.

While on the subject, it would be helpful if you could rename the environment variable "DISABLE_AUTOUPDATER=1" to something more claude specific.

Environment Info

  • Platform: darwin
  • Terminal: vscode
  • Version: 2.0.71
  • Feedback ID: cfeee37b-22db-4077-b898-dbc440d8b1f3

Errors

View original on GitHub ↗

This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗