bun install fails on v1.2.10 of bun #2118

Closed
opened 2026-02-16 17:34:14 -05:00 by yindo · 2 comments
Owner

Originally created by @Flux159 on GitHub (Oct 15, 2025).

Just ran into this cloning repo & trying to get development environment setup. I was on bun v1.2.10 and got this error:

git clone https://github.com/sst/opencode
cd opencode
bun install
bun install v1.2.10 (db2e7d7f)
error: "git clone" for "@typescript/native-preview" failed

error: InstallFailed cloning repository for @typescript/native-preview
...

Along with a lot of "failed to resolve" errors for other dependencies.

Fix for me was to upgrade to bun v1.3.0 (on Mac OS X Tahoe).

bun upgrade
bun install

Going to close issue immediately, but wanted to post in case anyone else runs into this & searches for this error.

Originally created by @Flux159 on GitHub (Oct 15, 2025). Just ran into this cloning repo & trying to get development environment setup. I was on bun v1.2.10 and got this error: ```shell git clone https://github.com/sst/opencode cd opencode bun install ``` ```shell bun install v1.2.10 (db2e7d7f) error: "git clone" for "@typescript/native-preview" failed error: InstallFailed cloning repository for @typescript/native-preview ... ``` Along with a lot of "failed to resolve" errors for other dependencies. Fix for me was to upgrade to bun v1.3.0 (on Mac OS X Tahoe). ```shell bun upgrade bun install ``` Going to close issue immediately, but wanted to post in case anyone else runs into this & searches for this error.
yindo closed this issue 2026-02-16 17:34:14 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Oct 15, 2025):

This issue might be a duplicate of existing issues. Please check:

  • #3138: Another BunInstallFailedError with installation failures and JSON parsing errors when downloading plugins
  • #2806: Similar bun dependency resolution failures with '@ai-sdk/anthropic@2.0.0@latest failed to resolve' error
  • #414: Issues installing opencode-ai using bun with postinstall script failures
  • #1579: Cannot find module errors after bun install in development setup

Feel free to ignore if none of these address your specific case.

@github-actions[bot] commented on GitHub (Oct 15, 2025): This issue might be a duplicate of existing issues. Please check: - #3138: Another BunInstallFailedError with installation failures and JSON parsing errors when downloading plugins - #2806: Similar bun dependency resolution failures with '@ai-sdk/anthropic@2.0.0@latest failed to resolve' error - #414: Issues installing opencode-ai using bun with postinstall script failures - #1579: Cannot find module errors after bun install in development setup Feel free to ignore if none of these address your specific case.
Author
Owner

@rekram1-node commented on GitHub (Oct 15, 2025):

added this to readme:

To run OpenCode locally you need.
Bun 1.3 or higher

@rekram1-node commented on GitHub (Oct 15, 2025): added this to readme: > To run OpenCode locally you need. Bun 1.3 or higher
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#2118