You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The issue appears to stem from the entrypoint shell script attempting to run a binary with Node.js. As a workaround, I modified lines 18 and 20 of ~/.local/share/pnpm/opencode, removing node from the command and running the binary directly.
Interestingly, reinstalling with pnpm worked without the need to modify the shell script (OpenCode version 1.0.110).
Another one here, In my case was that it was deleted from the system I couldn't find opencode
then I reinstalled it like @wgumenyuk did but it didn't work... and run into the same problem
it seems the script is trying to call a binary hence the ELF error
so we need to test for ELF or JS and exec accordingly
/home/xx/.local/share/pnpm/global/5/.pnpm/[email protected]/node_modules/opencode-linux-x64/bin/opencode:1
ELF
^
SyntaxError: Invalid or unexpected token
at wrapSafe (node:internal/modules/cjs/loader:1638:18)
at Module._compile (node:internal/modules/cjs/loader:1680:20)
at Object..js (node:internal/modules/cjs/loader:1839:10)
at Module.load (node:internal/modules/cjs/loader:1441:32)
at Function._load (node:internal/modules/cjs/loader:1263:12)
at TracingChannel.traceSync (node:diagnostics_channel:328:14)
at wrapModuleLoad (node:internal/modules/cjs/loader:237:24)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:171:5)
at node:internal/main/run_main_module:36:49
Node.js v22.21.1
``
Activity
rekram1-node commentedon Nov 18, 2025
hmm ill check it out
wgumenyuk commentedon Nov 25, 2025
The issue appears to stem from the entrypoint shell script attempting to run a binary with Node.js. As a workaround, I modified lines 18 and 20 of
~/.local/share/pnpm/opencode, removingnodefrom the command and running the binary directly.Interestingly, reinstalling with pnpm worked without the need to modify the shell script (OpenCode version
1.0.110).bartschuller commentedon Nov 30, 2025
Same here on MacOS and pnpm. opencode 1.0.122. These lines aren't right:
[-]Crash on start on Ubuntu[/-][+]pnpm install causes crash[/+]yokodev commentedon Dec 9, 2025
Another one here, In my case was that it was deleted from the system I couldn't find opencode
then I reinstalled it like @wgumenyuk did but it didn't work... and run into the same problem
it seems the script is trying to call a binary hence the ELF error
so we need to test for ELF or JS and exec accordingly
so by removing **node ** from this line (20)
and just using
eyebrowkang commentedon Jan 7, 2026
same problem with
opencode-ai 1.1.4thdxr commentedon Mar 25, 2026
To stay organized issues are automatically closed after 90 days of no activity. If the issue is still relevant please open a new one.