opencode
opencode copied to clipboard
make `bun install` work on Windows
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
@rekram1-node
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.
Yes, saw this today.