Skip to content

Error: cannot find module opencode-copilot-auth #3350

Closed

Description

@621625

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.

Activity

  1. github-actions commented on Oct 22, 2025

    @github-actions
    Contributor

    This issue might be a duplicate of existing issues. Please check:

    Feel free to ignore if none of these address your specific case.

  2. rekram1-node commented on Oct 22, 2025

    @rekram1-node
    Contributor

    @bitcoinmeetups can you run:

    cd ~/.cache/opencode && BUN_BE_BUN=1 opencode pm ls

  3. self-assigned this
    on Oct 22, 2025
  4. 621625 commented on Oct 25, 2025

    @621625
    Author

    [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]$

  5. rekram1-node commented on Oct 25, 2025

    @rekram1-node
    Contributor

    hm it seems to be installed, are you still getting this error?

  6. 621625 commented on Oct 26, 2025

    @621625
    Author

    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.

  7. supastishn commented on Oct 29, 2025

    @supastishn

    Same with me /home/supastishn/.cache/opencode node_modules (14)
    ├── opencode-anthropic-auth@0.0.2
    └── opencode-copilot-auth@0.0.3

  8. honzakostejn commented on Nov 7, 2025

    @honzakostejn

    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)

  9. 621625 commented on Nov 29, 2025

    @621625
    Author

    This did not resolve the issue for me.

  10. rekram1-node commented on Nov 29, 2025

    @rekram1-node
    Contributor

    what version of opencode are u on

  11. 621625 commented on Nov 29, 2025

    @621625
    Author

    0.15.13

    Termux - Archlinux

  12. 621625 commented on Nov 29, 2025

    @621625
    Author

    It would also be nice if opencode worked on vanilla Termux but be prepared for many new users in that case.

  13. rekram1-node commented on Nov 29, 2025

    @rekram1-node
    Contributor

    @bitcoinmeetups upgrade your opencode to latest and run with this flag:

    OPENCODE_DISABLE_DEFAULT_PLUGINS=true

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions