Issues installing opencode-ai using bun #298

Closed
opened 2026-02-16 17:26:07 -05:00 by yindo · 3 comments
Owner

Originally created by @vicagbasi on GitHub (Jun 26, 2025).

Originally assigned to: @thdxr on GitHub.

PS C:\Windows\system32> bun install -g opencode-ai
bun add v1.2.17 (282dda62)
⚙️ opencode-ai [1/1] Failed to create opencode binary symlink: Could not find package opencode-win32-arm64: Cannot find module 'opencode-win32-arm64/package.json'
Require stack:

  • C:\Users\ikeag.bun\install\global\node_modules\opencode-ai\postinstall.mjs

error: postinstall script from "opencode-ai" exited with 1

Originally created by @vicagbasi on GitHub (Jun 26, 2025). Originally assigned to: @thdxr on GitHub. PS C:\Windows\system32> bun install -g opencode-ai bun add v1.2.17 (282dda62) ⚙️ opencode-ai [1/1] Failed to create opencode binary symlink: Could not find package opencode-win32-arm64: Cannot find module 'opencode-win32-arm64/package.json' Require stack: - C:\Users\ikeag\.bun\install\global\node_modules\opencode-ai\postinstall.mjs error: postinstall script from "opencode-ai" exited with 1
yindo closed this issue 2026-02-16 17:26:07 -05:00
Author
Owner

@xHeaven commented on GitHub (Jun 26, 2025):

Refer to the bottom of the README. Windows is not supported. Use WSL.

@xHeaven commented on GitHub (Jun 26, 2025): Refer to the bottom of the README. Windows is not supported. Use WSL.
Author
Owner

@thdxr commented on GitHub (Jun 26, 2025):

our windows install flow with npm/bun/etc isn't working right now. you can download the binary from releases though

@thdxr commented on GitHub (Jun 26, 2025): our windows install flow with npm/bun/etc isn't working right now. you can download the binary from releases though
Author
Owner

@vicagbasi commented on GitHub (Jun 30, 2025):

no worries. got it working in my macOS environment

@vicagbasi commented on GitHub (Jun 30, 2025): no worries. got it working in my macOS environment
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#298