claude-code - 💡(How to fix) Fix [BUG] Claude new version failure in termux [1 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
anthropics/claude-code#51741Fetched 2026-04-22 07:54:05
View on GitHub
Comments
1
Participants
2
Timeline
7
Reactions
0
Timeline (top)
labeled ×5commented ×1unlabeled ×1

Error Message

~/.../public/jtech-tui $ claude ✔ Error: claude native binary not installed.

Either postinstall did not run (--ignore-scripts, some pnpm configs) or the platform-native optional dependency was not downloaded (--omit=optional).

Run the postinstall manually (adjust path for local vs global install): node node_modules/@anthropic-ai/claude-code/install.cjs

Or reinstall without --ignore-scripts / --omit=optional.

Running it manually shows that platform is Android and unsupported

Code Example

~/.../public/jtech-tui $ claude                                              ✔
Error: claude native binary not installed.

Either postinstall did not run (--ignore-scripts, some pnpm configs)
or the platform-native optional dependency was not downloaded
(--omit=optional).

Run the postinstall manually (adjust path for local vs global install):
  node node_modules/@anthropic-ai/claude-code/install.cjs

Or reinstall without --ignore-scripts / --omit=optional.

Running it manually shows that platform is Android and unsupported
RAW_BUFFERClick to expand / collapse

Preflight Checklist

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

What's Wrong?

Auto updates to 2.1.116 and can't build due to unnecessary hardcoded check ensuring platform isn't Android. Termux ran Claude totally perfectly in the past and was amazing. There are no bugs in Android and it shouldn't be purposefully excluded. I imagine it's a mistake and a bug.

What Should Happen?

Simply remove that unnecessary check

Error Messages/Logs

~/.../public/jtech-tui $ claude                                              ✔
Error: claude native binary not installed.

Either postinstall did not run (--ignore-scripts, some pnpm configs)
or the platform-native optional dependency was not downloaded
(--omit=optional).

Run the postinstall manually (adjust path for local vs global install):
  node node_modules/@anthropic-ai/claude-code/install.cjs

Or reinstall without --ignore-scripts / --omit=optional.

Running it manually shows that platform is Android and unsupported

Steps to Reproduce

Simply slow auto update in termux, exit and reopen. Won't reopen

Claude Model

Not sure / Multiple models

Is this a regression?

Yes, this worked in a previous version

Last Working Version

2.1.112

Claude Code Version

2.1.116

Platform

Anthropic API

Operating System

Other Linux

Terminal/Shell

Other

Additional Information

To see the old version working perfectly without getting bombarded with auto update breaking it, add to config env to disable auto update

Btw as a paying user with only termux with frequent Claude use - this absolutely sucks. I hope it gets fixed soon

extent analysis

TL;DR

The issue can likely be resolved by removing the unnecessary hardcoded check that prevents Claude Code from running on Android platforms.

Guidance

  • The error message suggests that the postinstall script did not run or the platform-native optional dependency was not downloaded, but the root cause is the hardcoded check for Android platforms.
  • To verify the issue, try running the postinstall script manually using the command node node_modules/@anthropic-ai/claude-code/install.cjs and observe the error message indicating that the platform is Android and unsupported.
  • As a temporary workaround, consider disabling auto-update in the config environment to prevent the issue from occurring, as mentioned in the additional information section.
  • The fact that this worked in a previous version (2.1.112) suggests that the issue is a regression and may be related to changes introduced in version 2.1.116.

Example

No code snippet is provided as it is not clearly supported by the issue.

Notes

The issue is specific to Termux on Android and may not affect other platforms. The user has already identified the previous working version (2.1.112) and the current version (2.1.116) that introduced the issue.

Recommendation

Apply workaround: Disable auto-update in the config environment to prevent the issue from occurring, until a fix is released that removes the unnecessary hardcoded check for Android platforms. This is because the user is a paying customer with frequent Claude use on Termux and needs a temporary solution to continue using the service.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING