Error: cannot find module opencode-copilot-auth
Hi guys,
Hope you are well.
Getting this error message:
[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.
Env: Arch emulator.
This issue might be a duplicate of existing issues. Please check:
- #2341: Same "Cannot find module opencode-copilot-auth" error with identical module resolution failure
Feel free to ignore if none of these address your specific case.
@bitcoinmeetups can you run:
cd ~/.cache/opencode && BUN_BE_BUN=1 opencode pm ls
[bm@localhost ~]$ cd ~/.cache/opencode && BUN_BE_BUN=1 opencode pm ls /home/bm/.cache/opencode node_modules (1) └── [email protected] [bm@localhost opencode]$
hm it seems to be installed, are you still getting this error?
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.
Same with me /home/supastishn/.cache/opencode node_modules (14) ├── [email protected] └── [email protected]
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: https://github.com/sst/opencode/issues/2341#issuecomment-3502867060
This did not resolve the issue for me.
what version of opencode are u on
0.15.13
Termux - Archlinux
It would also be nice if opencode worked on vanilla Termux but be prepared for many new users in that case.
@bitcoinmeetups upgrade your opencode to latest and run with this flag:
OPENCODE_DISABLE_DEFAULT_PLUGINS=true