make bun install work on Windows #2230

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

Originally created by @itsrainingmani on GitHub (Oct 22, 2025).

Originally assigned to: @rekram1-node on GitHub.

Currently, we are able to install opencode on Windows via npm install -g opencode-ai. But trying to install opencode via bun (bun install -g opencode-ai) and then running opencode results in the following error -

error: interpreter executable "/bin/sh" not found in %PATH%

Bun failed to remap this bin to its proper location within node_modules.
This is an indication of a corrupted node_modules directory.

This is probably due to how the current npm install script works by rebuilding the binary shims on Windows

Originally created by @itsrainingmani on GitHub (Oct 22, 2025). Originally assigned to: @rekram1-node on GitHub. Currently, we are able to install opencode on Windows via `npm install -g opencode-ai`. But trying to install opencode via bun (`bun install -g opencode-ai`) and then running opencode results in the following error - ```sh error: interpreter executable "/bin/sh" not found in %PATH% Bun failed to remap this bin to its proper location within node_modules. This is an indication of a corrupted node_modules directory. ``` This is probably due to how the current `npm install` script works by rebuilding the binary shims on Windows
yindo added the windows label 2026-02-16 17:34:46 -05:00
yindo closed this issue 2026-02-16 17:34:46 -05:00
Author
Owner

@itsrainingmani commented on GitHub (Oct 22, 2025):

@rekram1-node

@itsrainingmani commented on GitHub (Oct 22, 2025): @rekram1-node
Author
Owner

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

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

  • #3267: Windows-specific bun installation and execution problems causing segmentation faults
  • #3196: General bun install compatibility issues (resolved by upgrading to bun v1.3.0)
  • #3142: Windows installation and execution failures with 'Failed to send message' errors
  • #3208: Windows-specific socket connection issues that may be related to installation problems

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

@github-actions[bot] commented on GitHub (Oct 22, 2025): This issue might be a duplicate of existing issues. Please check: - #3267: Windows-specific bun installation and execution problems causing segmentation faults - #3196: General bun install compatibility issues (resolved by upgrading to bun v1.3.0) - #3142: Windows installation and execution failures with 'Failed to send message' errors - #3208: Windows-specific socket connection issues that may be related to installation problems Feel free to ignore if none of these address your specific case.
Author
Owner

@RichardScottOZ commented on GitHub (Oct 30, 2025):

Yes, saw this today.

@RichardScottOZ commented on GitHub (Oct 30, 2025): Yes, saw this today.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#2230