windows version installed from pnpm does not work #2779

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

Originally created by @HeavySnowJakarta on GitHub (Nov 11, 2025).

Originally assigned to: @rekram1-node on GitHub.

Description

on cmd:

>opencode
The system cannot find the path specified.

on git bash:

$ opencode
It seems that your package manager failed to install the right version of the opencode CLI for your platform. You can try manually installing the "opencode-win32-x64" package

on pwsh:

> opencode
&: C:\Users\bians\AppData\Local\pnpm\opencode.ps1:36
Line |
  36 |      & "/bin/sh$exe"  "$basedir/global/5/.pnpm/opencode-ai@1.0.55/node …
     |        ~~~~~~~~~~~~~
     | The term '/bin/sh.exe' is not recognized as a name of a cmdlet, function, script file, or executable program.
     | Check the spelling of the name, or if a path was included, verify that the path is correct and try again.

it seemed to be seeking for sth like "/bin/sh" and failed, but it does not work with git bash either.

OpenCode version

1.0.55

Steps to reproduce

No response

Screenshot and/or share link

No response

Operating System

windows 11 x64

Terminal

windows terminal

Originally created by @HeavySnowJakarta on GitHub (Nov 11, 2025). Originally assigned to: @rekram1-node on GitHub. ### Description on cmd: ``` >opencode The system cannot find the path specified. ``` on git bash: ``` $ opencode It seems that your package manager failed to install the right version of the opencode CLI for your platform. You can try manually installing the "opencode-win32-x64" package ``` on pwsh: ``` > opencode &: C:\Users\bians\AppData\Local\pnpm\opencode.ps1:36 Line | 36 | & "/bin/sh$exe" "$basedir/global/5/.pnpm/opencode-ai@1.0.55/node … | ~~~~~~~~~~~~~ | The term '/bin/sh.exe' is not recognized as a name of a cmdlet, function, script file, or executable program. | Check the spelling of the name, or if a path was included, verify that the path is correct and try again. ``` it seemed to be seeking for sth like "/bin/sh" and failed, but it does not work with git bash either. ### OpenCode version 1.0.55 ### Steps to reproduce _No response_ ### Screenshot and/or share link _No response_ ### Operating System windows 11 x64 ### Terminal windows terminal
yindo added the opentuibug labels 2026-02-16 17:37:13 -05:00
yindo closed this issue 2026-02-16 17:37:13 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Nov 11, 2025):

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

  • #3002: Same exact error message about package manager failing to install the right version for Windows platform, suggesting manual installation of "opencode-windows-x64" package
  • #2447: Comprehensive Windows installation issue covering the same "/bin/sh.exe" PowerShell error and package manager installation problems
  • #3736: Same Windows + pnpm shebang issue with /bin/sh causing errors in CMD and PowerShell
  • #631: General Windows support tracking issue that covers multiple Windows installation problems including pnpm-related issues

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

@github-actions[bot] commented on GitHub (Nov 11, 2025): This issue might be a duplicate of existing issues. Please check: - #3002: Same exact error message about package manager failing to install the right version for Windows platform, suggesting manual installation of "opencode-windows-x64" package - #2447: Comprehensive Windows installation issue covering the same "/bin/sh.exe" PowerShell error and package manager installation problems - #3736: Same Windows + pnpm shebang issue with /bin/sh causing errors in CMD and PowerShell - #631: General Windows support tracking issue that covers multiple Windows installation problems including pnpm-related issues Feel free to ignore if none of these address your specific case.
Author
Owner

@HeavySnowJakarta commented on GitHub (Nov 11, 2025):

Same exact error message about package manager failing to install the right version for Windows platform, suggesting manual installation of "opencode-windows-x64" package

not exactly. i can't even see this msg unless using a posix compatible shell (git bash)

@HeavySnowJakarta commented on GitHub (Nov 11, 2025): > Same exact error message about package manager failing to install the right version for Windows platform, suggesting manual installation of "opencode-windows-x64" package not exactly. i can't even see this msg unless using a posix compatible shell (git bash)
Author
Owner

@rekram1-node commented on GitHub (Nov 11, 2025):

will fix

@rekram1-node commented on GitHub (Nov 11, 2025): will fix
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#2779