Skip to content

BunInstallFailedError #49

@hazaveh

Description

@hazaveh

Hi there,

I'm trying to install the plugin but once I place it in the opencode.json and run opencode it exists with BunInstallFailedError.

I have following logs:

INFO  2026-02-11T15:25:54 +402ms service=default version=1.1.58 args=["auth","login"] opencode
INFO  2026-02-11T15:25:54 +1ms service=default directory=/Users/max/.cache creating instance
INFO  2026-02-11T15:25:54 +0ms service=project directory=/Users/max/.cache fromDirectory
INFO  2026-02-11T15:25:54 +37ms service=config path=/Users/max/.config/opencode/config.json loading
INFO  2026-02-11T15:25:54 +0ms service=config path=/Users/max/.config/opencode/opencode.json loading
INFO  2026-02-11T15:25:54 +4ms service=config path=/Users/max/.config/opencode/opencode.jsonc loading
INFO  2026-02-11T15:25:54 +3ms service=config path=/Users/max/.opencode/opencode.jsonc loading
INFO  2026-02-11T15:25:54 +0ms service=config path=/Users/max/.opencode/opencode.json loading
INFO  2026-02-11T15:25:57 +3011ms service=bun cmd=["/Users/max/.opencode/bin/opencode","install"] cwd=/Users/max/.opencode running
INFO  2026-02-11T15:25:57 +24ms service=bun code=1 stdout=bun install v1.3.8 (b64edcb4)
 stderr=error: bun is unable to write files to tempdir: AccessDenied
 done
INFO  2026-02-11T15:26:04 +6747ms service=plugin name=CodexAuthPlugin loading internal plugin
INFO  2026-02-11T15:26:04 +2ms service=plugin name=CopilotAuthPlugin loading internal plugin
INFO  2026-02-11T15:26:04 +0ms service=plugin name=gitlabAuthPlugin loading internal plugin
INFO  2026-02-11T15:26:04 +0ms service=plugin path=opencode-anthropic-auth@0.0.13 loading plugin
INFO  2026-02-11T15:26:04 +2ms service=bun pkg=opencode-anthropic-auth version=0.0.13 installing package using Bun's default registry resolution
INFO  2026-02-11T15:26:04 +0ms service=bun cmd=["/Users/max/.opencode/bin/opencode","add","--force","--exact","--cwd","/Users/max/.cache/opencode","opencode-anthropic-auth@0.0.13"] cwd=/Users/max/.cache/opencode running
INFO  2026-02-11T15:26:04 +16ms service=bun code=1 stdout=bun add v1.3.8 (b64edcb4)
 stderr=error: bun is unable to write files to tempdir: AccessDenied
 done
ERROR 2026-02-11T15:26:04 +1ms service=plugin pkg=opencode-anthropic-auth version=0.0.13 error=BunInstallFailedError failed to install builtin plugin
INFO  2026-02-11T15:26:04 +0ms service=bus type=session.error publishing
INFO  2026-02-11T15:26:04 +0ms service=plugin path=opencode-gemini-auth@latest loading plugin
INFO  2026-02-11T15:26:04 +0ms service=bun pkg=opencode-gemini-auth version=latest installing package using Bun's default registry resolution
INFO  2026-02-11T15:26:04 +0ms service=bun cmd=["/Users/max/.opencode/bin/opencode","add","--force","--exact","--cwd","/Users/max/.cache/opencode","opencode-gemini-auth@latest"] cwd=/Users/max/.cache/opencode running
INFO  2026-02-11T15:26:04 +11ms service=bun code=1 stdout=bun add v1.3.8 (b64edcb4)
 stderr=error: bun is unable to write files to tempdir: AccessDenied
 done
ERROR 2026-02-11T15:26:04 +10ms service=default pkg=opencode-gemini-auth version=latest name=BunInstallFailedError message=BunInstallFailedError cause=Error: Command failed with exit code 1 stack=BunInstallFailedError: BunInstallFailedError
    at <anonymous> (src/bun/index.ts:114:17)
    at processTicksAndRejections (native:7:39) fatal

when the plugin is removed opencode runs fine.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions