-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Open
Labels
bugSomething isn't workingSomething isn't workingcoreAnything pertaining to core functionality of the application (opencode server stuff)Anything pertaining to core functionality of the application (opencode server stuff)windows
Description
Description
When I use opencode sdk on windows. I called createOpencode function, then got a fail
node:internal/child_process:286
const err = new ErrnoException(exitCode, syscall);
^
Error: spawn opencode ENOENT
at ChildProcess._handle.onexit (node:internal/child_process:286:19)
at onErrorNT (node:internal/child_process:484:16)
at process.processTicksAndRejections (node:internal/process/task_queues:89:21) {
errno: -4058,
code: 'ENOENT',
syscall: 'spawn opencode',
path: 'opencode',
spawnargs: [ 'serve', '--hostname=127.0.0.1', '--port=0' ]
}
Plugins
No response
OpenCode version
1.2.27
Steps to reproduce
Run following on windows 11, then got error.
const { createOpencode } = await import('@opencode-ai/sdk');
const opencode = createOpencode({
port: 4000,
});
Screenshot and/or share link
Operating System
Windows 11
Terminal
Power shell
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingcoreAnything pertaining to core functionality of the application (opencode server stuff)Anything pertaining to core functionality of the application (opencode server stuff)windows