opencode auth login throw BunInstallFailedError #7587

Open
opened 2026-02-16 18:07:40 -05:00 by yindo · 3 comments
Owner

Originally created by @pplmx on GitHub (Jan 25, 2026).

Originally assigned to: @rekram1-node on GitHub.

Description

❯ opencode auth login
INFO 2026-01-26T04:25:30 +57ms service=models.dev file={} refreshing

┌ Add credential

◇ Select provider
│ Google
Error: Unexpected error, check log file at /home/matrix/.local/share/opencode/log/2026-01-26T042530.log for more details

BunInstallFailedError

Check the log

Run the command in the log

BUN_BE_BUN=1 opencode add --force --exeact --cwd ~/.cache/opencode opencode@latest
bun add v1.3.5 (1e86cebd)
error: GET https://registry.npmjs.org/opencode - 404
FULL LOG
INFO  2026-01-26T04:25:30 +257ms service=default version=1.1.36 args=["auth","login"] opencode
INFO  2026-01-26T04:25:30 +1ms service=default directory=/home/matrix/.cache/opencode creating instance
INFO  2026-01-26T04:25:30 +0ms service=project directory=/home/matrix/.cache/opencode fromDirectory
INFO  2026-01-26T04:25:30 +26ms service=models.dev file={} refreshing
INFO  2026-01-26T04:25:30 +337ms service=config path=/home/matrix/.config/opencode/config.json loading
INFO  2026-01-26T04:25:30 +1ms service=config path=/home/matrix/.config/opencode/opencode.json loading
INFO  2026-01-26T04:25:30 +16ms service=config path=/home/matrix/.config/opencode/opencode.jsonc loading
INFO  2026-01-26T04:25:30 +10ms service=bun cmd=["/home/matrix/.opencode/bin/opencode","add","@opencode-ai/plugin@1.1.36","--exact"] cwd=/home/matrix/.config/opencode running
INFO  2026-01-26T04:25:30 +2ms service=config path=/home/matrix/.opencode/opencode.jsonc loading
INFO  2026-01-26T04:25:30 +1ms service=config path=/home/matrix/.opencode/opencode.json loading
INFO  2026-01-26T04:25:30 +0ms service=bun cmd=["/home/matrix/.opencode/bin/opencode","add","@opencode-ai/plugin@1.1.36","--exact"] cwd=/home/matrix/.opencode running
INFO  2026-01-26T04:25:30 +8ms service=bun code=0 stdout=bun add v1.3.5 (1e86cebd)

installed @opencode-ai/plugin@1.1.36

[2.00ms] done
 stderr=Saved lockfile
 done
INFO  2026-01-26T04:25:30 +0ms service=bun cmd=["/home/matrix/.opencode/bin/opencode","install"] cwd=/home/matrix/.opencode running
INFO  2026-01-26T04:25:30 +0ms service=bun code=0 stdout=bun add v1.3.5 (1e86cebd)

installed @opencode-ai/plugin@1.1.36

[6.00ms] done
 stderr=Saved lockfile
 done
INFO  2026-01-26T04:25:30 +0ms service=bun cmd=["/home/matrix/.opencode/bin/opencode","install"] cwd=/home/matrix/.config/opencode running
INFO  2026-01-26T04:25:30 +18ms service=bun code=0 stdout=bun install v1.3.5 (1e86cebd)

Checked 3 installs across 4 packages (no changes) [1.00ms]
 stderr= done
INFO  2026-01-26T04:25:30 +0ms service=bun code=0 stdout=bun install v1.3.5 (1e86cebd)

Checked 3 installs across 4 packages (no changes) [1.00ms]
 stderr= done
INFO  2026-01-26T04:25:32 +1674ms service=plugin name=CodexAuthPlugin loading internal plugin
INFO  2026-01-26T04:25:32 +0ms service=plugin name=CopilotAuthPlugin loading internal plugin
INFO  2026-01-26T04:25:32 +1ms service=plugin path=opencode loading plugin
INFO  2026-01-26T04:25:32 +1ms service=bun pkg=opencode version=latest installing package using Bun's default registry resolution
INFO  2026-01-26T04:25:32 +0ms service=bun cmd=["/home/matrix/.opencode/bin/opencode","add","--force","--exact","--cwd","/home/matrix/.cache/opencode","opencode@latest"] cwd=/home/matrix/.cache/opencode running
INFO  2026-01-26T04:25:32 +315ms service=bun code=1 stdout=bun add v1.3.5 (1e86cebd)
 stderr=Resolving dependencies
Resolved, downloaded and extracted [1]
error: GET https://registry.npmjs.org/opencode - 404
 done
ERROR 2026-01-26T04:25:32 +16ms service=default pkg=opencode version=latest name=BunInstallFailedError message=BunInstallFailedError cause=Error: Command failed with exit code 1 stack=BunInstallFailedError: BunInstallFailedError
    at <anonymous> (src/bun/index.ts:111:17)
    at processTicksAndRejections (native:7:39) fatal

Plugins

No response

OpenCode version

1.1.36

Steps to reproduce

  1. opencode auth login

Screenshot and/or share link

Image

Operating System

WSL Ubuntu 24.04

Terminal

Windows Terminal

Originally created by @pplmx on GitHub (Jan 25, 2026). Originally assigned to: @rekram1-node on GitHub. ### Description ❯ opencode auth login INFO 2026-01-26T04:25:30 +57ms service=models.dev file={} refreshing ┌ Add credential │ ◇ Select provider │ Google Error: Unexpected error, check log file at /home/matrix/.local/share/opencode/log/2026-01-26T042530.log for more details BunInstallFailedError ## Check the log Run the command in the log ```bash ❯ BUN_BE_BUN=1 opencode add --force --exeact --cwd ~/.cache/opencode opencode@latest bun add v1.3.5 (1e86cebd) error: GET https://registry.npmjs.org/opencode - 404 ``` <details> <summary>FULL LOG</summary> ```txt INFO 2026-01-26T04:25:30 +257ms service=default version=1.1.36 args=["auth","login"] opencode INFO 2026-01-26T04:25:30 +1ms service=default directory=/home/matrix/.cache/opencode creating instance INFO 2026-01-26T04:25:30 +0ms service=project directory=/home/matrix/.cache/opencode fromDirectory INFO 2026-01-26T04:25:30 +26ms service=models.dev file={} refreshing INFO 2026-01-26T04:25:30 +337ms service=config path=/home/matrix/.config/opencode/config.json loading INFO 2026-01-26T04:25:30 +1ms service=config path=/home/matrix/.config/opencode/opencode.json loading INFO 2026-01-26T04:25:30 +16ms service=config path=/home/matrix/.config/opencode/opencode.jsonc loading INFO 2026-01-26T04:25:30 +10ms service=bun cmd=["/home/matrix/.opencode/bin/opencode","add","@opencode-ai/plugin@1.1.36","--exact"] cwd=/home/matrix/.config/opencode running INFO 2026-01-26T04:25:30 +2ms service=config path=/home/matrix/.opencode/opencode.jsonc loading INFO 2026-01-26T04:25:30 +1ms service=config path=/home/matrix/.opencode/opencode.json loading INFO 2026-01-26T04:25:30 +0ms service=bun cmd=["/home/matrix/.opencode/bin/opencode","add","@opencode-ai/plugin@1.1.36","--exact"] cwd=/home/matrix/.opencode running INFO 2026-01-26T04:25:30 +8ms service=bun code=0 stdout=bun add v1.3.5 (1e86cebd) installed @opencode-ai/plugin@1.1.36 [2.00ms] done stderr=Saved lockfile done INFO 2026-01-26T04:25:30 +0ms service=bun cmd=["/home/matrix/.opencode/bin/opencode","install"] cwd=/home/matrix/.opencode running INFO 2026-01-26T04:25:30 +0ms service=bun code=0 stdout=bun add v1.3.5 (1e86cebd) installed @opencode-ai/plugin@1.1.36 [6.00ms] done stderr=Saved lockfile done INFO 2026-01-26T04:25:30 +0ms service=bun cmd=["/home/matrix/.opencode/bin/opencode","install"] cwd=/home/matrix/.config/opencode running INFO 2026-01-26T04:25:30 +18ms service=bun code=0 stdout=bun install v1.3.5 (1e86cebd) Checked 3 installs across 4 packages (no changes) [1.00ms] stderr= done INFO 2026-01-26T04:25:30 +0ms service=bun code=0 stdout=bun install v1.3.5 (1e86cebd) Checked 3 installs across 4 packages (no changes) [1.00ms] stderr= done INFO 2026-01-26T04:25:32 +1674ms service=plugin name=CodexAuthPlugin loading internal plugin INFO 2026-01-26T04:25:32 +0ms service=plugin name=CopilotAuthPlugin loading internal plugin INFO 2026-01-26T04:25:32 +1ms service=plugin path=opencode loading plugin INFO 2026-01-26T04:25:32 +1ms service=bun pkg=opencode version=latest installing package using Bun's default registry resolution INFO 2026-01-26T04:25:32 +0ms service=bun cmd=["/home/matrix/.opencode/bin/opencode","add","--force","--exact","--cwd","/home/matrix/.cache/opencode","opencode@latest"] cwd=/home/matrix/.cache/opencode running INFO 2026-01-26T04:25:32 +315ms service=bun code=1 stdout=bun add v1.3.5 (1e86cebd) stderr=Resolving dependencies Resolved, downloaded and extracted [1] error: GET https://registry.npmjs.org/opencode - 404 done ERROR 2026-01-26T04:25:32 +16ms service=default pkg=opencode version=latest name=BunInstallFailedError message=BunInstallFailedError cause=Error: Command failed with exit code 1 stack=BunInstallFailedError: BunInstallFailedError at <anonymous> (src/bun/index.ts:111:17) at processTicksAndRejections (native:7:39) fatal ``` </details> ### Plugins _No response_ ### OpenCode version 1.1.36 ### Steps to reproduce 1. opencode auth login ### Screenshot and/or share link <img width="1589" height="309" alt="Image" src="https://github.com/user-attachments/assets/1206ad9c-1869-4e1f-ac8c-8295a842c6f5" /> ### Operating System WSL Ubuntu 24.04 ### Terminal Windows Terminal
yindo added the windowsbug labels 2026-02-16 18:07:40 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Jan 25, 2026):

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

  • #6052: BunInstallFailederror on First Run - Similar BunInstallFailedError on startup
  • #9075: BunInstallFailedError for opencode-antigravity-auth@1.2.8 - Dependency conflict with zod versions - Package installation failure with 404-like errors
  • #3138: BunInstallFailedError: Installation fails with "Unsupported syntax: Operators are not allowed in JSON" - Similar plugin installation issues
  • #4490: npm-registry without ending slash breaks opencode - npm registry 404 error when resolving packages

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

@github-actions[bot] commented on GitHub (Jan 25, 2026): This issue might be a duplicate of existing issues. Please check: - #6052: BunInstallFailederror on First Run - Similar BunInstallFailedError on startup - #9075: BunInstallFailedError for opencode-antigravity-auth@1.2.8 - Dependency conflict with zod versions - Package installation failure with 404-like errors - #3138: BunInstallFailedError: Installation fails with "Unsupported syntax: Operators are not allowed in JSON" - Similar plugin installation issues - #4490: npm-registry without ending slash breaks opencode - npm registry 404 error when resolving packages Feel free to ignore if none of these address your specific case.
Author
Owner

@pplmx commented on GitHub (Jan 25, 2026):

#5223

@pplmx commented on GitHub (Jan 25, 2026): #5223
Author
Owner

@electroheadfx commented on GitHub (Jan 30, 2026):

I have the same error, I can't use anymore opencode:

opencode
{
  "name": "BunInstallFailedError",
  "data": {
    "pkg": "opencode-google-antigravity-auth",
    "version": "latest"
  }
}
@electroheadfx commented on GitHub (Jan 30, 2026): I have the same error, I can't use anymore opencode: ```bash opencode { "name": "BunInstallFailedError", "data": { "pkg": "opencode-google-antigravity-auth", "version": "latest" } } ```
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#7587