Qoney (@kunzingLo.0)用不了opencode的windows端 试试这几个命令 中发帖

npm uninstall -g opencode-ai opencode-windows-x64


升级 Bun
bun upgrade

用官方脚本安装最新版 OpenCode
curl -fsSL https://opencode.ai/install | bash

验证版本
opencode --version