BunInstallFailederror on First Run #3798

Open
opened 2026-02-16 17:41:30 -05:00 by yindo · 5 comments
Owner

Originally created by @ZeroCool2u on GitHub (Dec 23, 2025).

Originally assigned to: @rekram1-node on GitHub.

Description

Can't get anymore info out of opencode on this error. Installed using the standard curl command. There is a corporate proxy, but environment variables are configured correctly including the NODE_EXTRA_CA_CERTS variable. All other apps are using the exact same configuration and work correctly.

(base) ubuntu@machinename:/mnt$ opencode
^[\{
  "name": "BunInstallFailedError",
  "data": {
    "pkg": "opencode-copilot-auth",
    "version": "0.0.9"
  }
}

OpenCode version

1.0.193

Steps to reproduce

  1. Set environment variables for corporate proxy usage
  2. Install opencode using standard curl command
  3. Start opencode

Screenshot and/or share link

No response

Operating System

Ubuntu 22.04.5 LTS

Terminal

bash via VSCode

Originally created by @ZeroCool2u on GitHub (Dec 23, 2025). Originally assigned to: @rekram1-node on GitHub. ### Description Can't get anymore info out of opencode on this error. Installed using the standard curl command. There is a corporate proxy, but environment variables are configured correctly including the NODE_EXTRA_CA_CERTS variable. All other apps are using the exact same configuration and work correctly. ```bash (base) ubuntu@machinename:/mnt$ opencode ^[\{ "name": "BunInstallFailedError", "data": { "pkg": "opencode-copilot-auth", "version": "0.0.9" } } ``` ### OpenCode version 1.0.193 ### Steps to reproduce 1. Set environment variables for corporate proxy usage 2. Install opencode using standard curl command 3. Start opencode ### Screenshot and/or share link _No response_ ### Operating System Ubuntu 22.04.5 LTS ### Terminal bash via VSCode
yindo added the bug label 2026-02-16 17:41:30 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Dec 23, 2025):

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

  • #2992: opencode fails to start after chocolatey install: HTTPThread: the CA is invalid (similar proxy/certificate validation issue)
  • #5223: Can't open opencode after install (same BunInstallFailedError with opencode-copilot-auth)
  • #5110: Opencode wont start. BunInstallFailedError (same error, suggests network/proxy issues)
  • #3138: BunInstallFailedError: Installation fails with "Unsupported syntax: Operators are not allowed in JSON" (related network/registry issues)
  • #2224: Support for airgapped installation (network connectivity issues during package installation)

The common thread in all these issues is that BunInstallFailedError occurs when there are network/proxy/certificate issues preventing successful installation of the opencode-copilot-auth package. Your issue with corporate proxy and NODE_EXTRA_CA_CERTS configuration is particularly similar to #2992.

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

@github-actions[bot] commented on GitHub (Dec 23, 2025): This issue might be a duplicate of existing issues. Please check: - #2992: opencode fails to start after chocolatey install: HTTPThread: the CA is invalid (similar proxy/certificate validation issue) - #5223: Can't open opencode after install (same BunInstallFailedError with opencode-copilot-auth) - #5110: Opencode wont start. BunInstallFailedError (same error, suggests network/proxy issues) - #3138: BunInstallFailedError: Installation fails with "Unsupported syntax: Operators are not allowed in JSON" (related network/registry issues) - #2224: Support for airgapped installation (network connectivity issues during package installation) The common thread in all these issues is that BunInstallFailedError occurs when there are network/proxy/certificate issues preventing successful installation of the opencode-copilot-auth package. Your issue with corporate proxy and NODE_EXTRA_CA_CERTS configuration is particularly similar to #2992. Feel free to ignore if none of these address your specific case.
Author
Owner

@ZeroCool2u commented on GitHub (Dec 23, 2025):

It also fails when I set OPENCODE_DISABLE_DEFAULT_PLUGINS=true.

@ZeroCool2u commented on GitHub (Dec 23, 2025): It also fails when I set OPENCODE_DISABLE_DEFAULT_PLUGINS=true.
Author
Owner

@rekram1-node commented on GitHub (Dec 23, 2025):

@ZeroCool2u what is failing when you set that?

That plugin shouldnt be installed at all if that flag is set

@rekram1-node commented on GitHub (Dec 23, 2025): @ZeroCool2u what is failing when you set that? That plugin shouldnt be installed at all if that flag is set
Author
Owner

@ZeroCool2u commented on GitHub (Dec 24, 2025):

The exact same command is failing, just starting opencode. Same output as before from the same command when that variable is set. I also tried setting it to 1 as well as true, but same result.

@ZeroCool2u commented on GitHub (Dec 24, 2025): The exact same command is failing, just starting opencode. Same output as before from the same command when that variable is set. I also tried setting it to 1 as well as true, but same result.
Author
Owner

@lematosdev commented on GitHub (Jan 6, 2026):

i fixed it by setting export NODE_TLS_REJECT_UNAUTHORIZED=0

@lematosdev commented on GitHub (Jan 6, 2026): i fixed it by setting `export NODE_TLS_REJECT_UNAUTHORIZED=0`
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#3798