[BUG] 2.0.55 on Ubuntu can't start due to TypeError

Status Fixed / completed
Maintainer reply ✓ Yes — wolffiex
Activity 4 comments · opened Nov 27, 2025 · closed Nov 27, 2025
💡 Likely answer: A maintainer (wolffiex, collaborator) responded on this thread — see the highlighted reply below.

Preflight Checklist

  • [x] I have searched existing issues and this hasn't been reported yet
  • [x] This is a single bug report (please file separate reports for different bugs)
  • [x] I am using the latest version of Claude Code

What's Wrong?

After upgrading from 2.0.53 to 2.0.55 claude doesn't start:

$ claude
 6 |     "use strict";
 7 | 
 8 |     //
 9 |     if (entry.instantiate)
10 |         return entry.instantiate;
11 |     var instantiatePromise = (async () => {
                                               ^
TypeError: Expected CommonJS module to have a function wrapper. If you weren't messing around with Bun's internals, this is a bug in Bun

Bun v1.3.2 (Linux x64 baseline)

Reverting to 2.0.53 works, but then it auto upgrades it self back to 2.0.55 so I need to downgrade befopre each time I need to start claude

seems to not have an issue on another Ubuntu I have (same version)

What Should Happen?

claude command should work

Error Messages/Logs

$ claude
 6 |     "use strict";
 7 | 
 8 |     //
 9 |     if (entry.instantiate)
10 |         return entry.instantiate;
11 |     var instantiatePromise = (async () => {
                                               ^
TypeError: Expected CommonJS module to have a function wrapper. If you weren't messing around with Bun's internals, this is a bug in Bun

Bun v1.3.2 (Linux x64 baseline)

Steps to Reproduce

  1. install 2.0.55 on Ubuntu
  2. run claude

Claude Model

None

Is this a regression?

Yes, this worked in a previous version

Last Working Version

2.0.53

Claude Code Version

2.0.55

Platform

Anthropic API

Operating System

Ubuntu/Debian Linux

Terminal/Shell

Other

Additional Information

_No response_

View original on GitHub ↗

4 Comments

github-actions[bot] · 10 months ago

Found 3 possible duplicate issues:

  1. https://github.com/anthropics/claude-code/issues/12467
  2. https://github.com/anthropics/claude-code/issues/12521
  3. https://github.com/anthropics/claude-code/issues/12163

This issue will be automatically closed as a duplicate in 3 days.

  • If your issue is a duplicate, please close it and 👍 the existing issue instead
  • To prevent auto-closure, add a comment or 👎 this comment

🤖 Generated with Claude Code

regevbr · 10 months ago

I deleted the binary and then reinstalled and it worked

github-actions[bot] · 10 months ago

This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.

wolffiex collaborator · 10 months ago

Thanks for this report! Fix is merged and should ship tomorrow.