From 15df2710fabebb70662e94a39b74dae419dc30d6 Mon Sep 17 00:00:00 2001 From: Mani Sundararajan <10191300+itsrainingmani@users.noreply.github.com> Date: Tue, 16 Sep 2025 03:40:19 -0400 Subject: fix(windows): force npm cmd shim generation and update install docs (#2558) Co-authored-by: Dax Co-authored-by: GitHub Action --- packages/web/src/content/docs/index.mdx | 29 ++++++++++++++++++++++- packages/web/src/content/docs/troubleshooting.mdx | 2 +- 2 files changed, 29 insertions(+), 2 deletions(-) (limited to 'packages/web/src/content/docs') diff --git a/packages/web/src/content/docs/index.mdx b/packages/web/src/content/docs/index.mdx index e57b4b1f4..293950eb0 100644 --- a/packages/web/src/content/docs/index.mdx +++ b/packages/web/src/content/docs/index.mdx @@ -62,7 +62,34 @@ You can also install it with the following: #### Windows -Currently, the automatic installation methods do not work properly on Windows. However you can grab the binary from the [Releases](https://github.com/sst/opencode/releases). +- **Using Chocolatey** + + ```bash + choco install opencode + ``` + +- **Using WinGet** + + ```bash + winget install opencode + ``` + +- **Using Scoop** + + ```bash + scoop bucket add extras + scoop install extras/opencode + ``` + +- **Using NPM** + + ```bash + npm install -g opencode-ai + ``` + +Support for installing opencode on Windows using the bun package manager is currently in progress. + +You can also grab the binary from the [Releases](https://github.com/sst/opencode/releases). --- diff --git a/packages/web/src/content/docs/troubleshooting.mdx b/packages/web/src/content/docs/troubleshooting.mdx index b846bed2d..57fbfe088 100644 --- a/packages/web/src/content/docs/troubleshooting.mdx +++ b/packages/web/src/content/docs/troubleshooting.mdx @@ -13,7 +13,7 @@ that it stores locally. Log files are written to: - **macOS/Linux**: `~/.local/share/opencode/log/` -- **Windows**: `%APPDATA%\opencode\log\` +- **Windows**: `%USERPROFILE%\.local\share\opencode\log\` Log files are named with timestamps (e.g., `2025-01-09T123456.log`) and the most recent 10 log files are kept. -- cgit v1.2.3