opencode icon indicating copy to clipboard operation
opencode copied to clipboard

make `bun install` work on Windows

Open itsrainingmani opened this issue 2 months ago • 3 comments

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

itsrainingmani avatar Oct 22 '25 17:10 itsrainingmani

@rekram1-node

itsrainingmani avatar Oct 22 '25 18:10 itsrainingmani

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] avatar Oct 22 '25 18:10 github-actions[bot]

Yes, saw this today.

RichardScottOZ avatar Oct 30 '25 08:10 RichardScottOZ