fix(windows): force npm cmd shim generation and update install docs (#2558)

Co-authored-by: Dax <mail@thdxr.com>
Co-authored-by: GitHub Action <action@github.com>
This commit is contained in:
Mani Sundararajan
2025-09-16 03:40:19 -04:00
committed by GitHub
parent 02e492f6eb
commit 15df2710fa
4 changed files with 88 additions and 9 deletions

View File

@@ -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).
---

View File

@@ -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.