几个不同操作系统下,opencode都不能用了,都碰到了这个问题:Error: Failed to spawn OpenCode Server
尝试解决问题
在Windows10下
删除然后再重新安装试试
winget uninstall OpenCode
安装
winget install OpenCode
但是我在windows下安装失败,用这个命令试试
choco install opencode
不过我碰到了这个报错:
from 'https://github.com/anomalyco/opencode/releases/download/v1.2.8/opencode-windows-x64.zip'
ERROR: The remote file either doesn't exist, is unauthorized, or is forbidden for url 'https://github.com/anomalyco/opencode/releases/download/v1.2.8/opencode-windows-x64.zip'. Exception calling "GetResponse" with "0" argument(s): "Unable to connect to the remote server"
This package is likely not broken for licensed users - see https://docs.chocolatey.org/en-us/features/private-cdn.
The install of opencode was NOT successful.
Error while running 'C:\ProgramData\chocolatey\lib\opencode\tools\chocolateyinstall.ps1'.
See log for details.
Chocolatey installed 0/1 packages. 1 packages failed.
See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).
Failures
- opencode (exited 404) - Error while running 'C:\ProgramData\chocolatey\lib\opencode\tools\chocolateyinstall.ps1'.
See log for details.
在WSL ubuntu22.04
所以最终实在WSL ubuntu22.04下面重新安装:
安装完成后真的能用了:
