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
[root@localhost bm]# opencode Error: Unexpected error, check log file at /root/.local/share/opencode/log/2025-10-22T082018.log for more details
error: Cannot find module '/root/.cache/opencode/node_modules/opencode-copilot-auth' from '/$bunfs/root/index.js' [root@localhost bm]#
Not sure how to fix this. Tried installing with curl, npm, bun and paru. It seemed to work once almost but some server issue. Got to the TUI screen. But after that I can't even get that far.
Yes and I think there is another thread full of people with a similar issue. Now Arch in Termux is a very very hostile environment because as you know Android phones are blocked by the corporations so there are many things that you can't do with them. But if we could get opencode running on Termux that would still open up opportunities too and increase the user base.
Activity
github-actions commentedon Oct 22, 2025
This issue might be a duplicate of existing issues. Please check:
Feel free to ignore if none of these address your specific case.
rekram1-node commentedon Oct 22, 2025
@bitcoinmeetups can you run:
cd ~/.cache/opencode && BUN_BE_BUN=1 opencode pm ls621625 commentedon Oct 25, 2025
[bm@localhost ~]$ cd ~/.cache/opencode && BUN_BE_BUN=1 opencode pm ls
/home/bm/.cache/opencode node_modules (1)
└── opencode-copilot-auth@0.0.3
[bm@localhost opencode]$
rekram1-node commentedon Oct 25, 2025
hm it seems to be installed, are you still getting this error?
621625 commentedon Oct 26, 2025
Yes and I think there is another thread full of people with a similar issue. Now Arch in Termux is a very very hostile environment because as you know Android phones are blocked by the corporations so there are many things that you can't do with them. But if we could get opencode running on Termux that would still open up opportunities too and increase the user base.
supastishn commentedon Oct 29, 2025
Same with me /home/supastishn/.cache/opencode node_modules (14)
├── opencode-anthropic-auth@0.0.2
└── opencode-copilot-auth@0.0.3
honzakostejn commentedon Nov 7, 2025
Faced the same issue on nix-on-droid (nix flavoured fork of Termux). I've used the flake to add the package. Then I was getting this error.
What fixed the issue in my case was to remove all node_modules from the opencode's cache and reinstall them with
npm install.See:
#2341 (comment)
621625 commentedon Nov 29, 2025
This did not resolve the issue for me.
rekram1-node commentedon Nov 29, 2025
what version of opencode are u on
621625 commentedon Nov 29, 2025
0.15.13
Termux - Archlinux
621625 commentedon Nov 29, 2025
It would also be nice if opencode worked on vanilla Termux but be prepared for many new users in that case.
rekram1-node commentedon Nov 29, 2025
@bitcoinmeetups upgrade your opencode to latest and run with this flag:
OPENCODE_DISABLE_DEFAULT_PLUGINS=true