Description
After upgrading from v1.4.9 to v1.4.10, git-based plugins fail to install/update on Windows CLI with the error:
ERROR service=plugin pkg=superpowers version=git+https://github.com/obra/superpowers.git error=No git binary found in $PATH failed to install plugin
Environment
- OS: Windows 11 Pro
- OpenCode CLI version: v1.4.10 (installed via
npm install -g opencode-ai)
- OpenCode Desktop version: v1.4.10 (works fine)
- git: v2.51.2.windows.1, installed at
C:\Program Files\Git\cmd\git.exe
- Binary path:
C:\Users\<user>\AppData\Roaming\npm\node_modules\opencode-ai\node_modules\opencode-windows-x64\bin\opencode.exe
Expected Behavior
Plugin installs/updates successfully, as it does in v1.4.9 and in OpenCode Desktop v1.4.10.
Actual Behavior
Plugin fails to install. The which.sync('git') call inside @npmcli/git (used by @npmcli/arborist for git-based package resolution) cannot find git in PATH, despite git being available in the system PATH.
Key Observations
- v1.4.9 CLI: Works correctly
- v1.4.10 CLI: Broken
- v1.4.10 Desktop: Works correctly (same machine, same version)
- git is accessible from terminal: where.exe git returns C:\Program Files\Git\cmd\git.exe
Workaround
Downgrade to v1.4.9
Plugins
superpowers
OpenCode version
1.4.10
Steps to reproduce
- Install OpenCode CLI v1.4.10 via
npm install -g opencode-ai
- Add a git-based plugin to
opencode.json:
{
"plugin": [
"superpowers@git+https://github.com/obra/superpowers.git"
]
}
- Start opencode
- Observe error in logs: No git binary found in $PATH
Screenshot and/or share link
No response
Operating System
Windows 11
Terminal
Powershell 7.6.0
Description
After upgrading from v1.4.9 to v1.4.10, git-based plugins fail to install/update on Windows CLI with the error:
ERROR service=plugin pkg=superpowers version=git+https://github.com/obra/superpowers.git error=No git binary found in $PATH failed to install plugin
Environment
npm install -g opencode-ai)C:\Program Files\Git\cmd\git.exeC:\Users\<user>\AppData\Roaming\npm\node_modules\opencode-ai\node_modules\opencode-windows-x64\bin\opencode.exeExpected Behavior
Plugin installs/updates successfully, as it does in v1.4.9 and in OpenCode Desktop v1.4.10.
Actual Behavior
Plugin fails to install. The which.sync('git') call inside @npmcli/git (used by @npmcli/arborist for git-based package resolution) cannot find git in PATH, despite git being available in the system PATH.
Key Observations
Workaround
Downgrade to v1.4.9
Plugins
superpowers
OpenCode version
1.4.10
Steps to reproduce
npm install -g opencode-aiopencode.json:{ "plugin": [ "superpowers@git+https://github.com/obra/superpowers.git" ] }Screenshot and/or share link
No response
Operating System
Windows 11
Terminal
Powershell 7.6.0