summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--packages/opencode/src/bun/index.ts9
1 files changed, 6 insertions, 3 deletions
diff --git a/packages/opencode/src/bun/index.ts b/packages/opencode/src/bun/index.ts
index 3f8b6178a..e3316eaae 100644
--- a/packages/opencode/src/bun/index.ts
+++ b/packages/opencode/src/bun/index.ts
@@ -53,9 +53,12 @@ export namespace BunProc {
if (parsed.dependencies[pkg] === version) return mod
parsed.dependencies[pkg] = version
await Bun.write(pkgjson, JSON.stringify(parsed, null, 2))
- await BunProc.run(["install"], {
- cwd: Global.Path.cache,
- }).catch((e) => {
+ await BunProc.run(
+ ["install", "--registry", "https://registry.npmjs.org/"],
+ {
+ cwd: Global.Path.cache,
+ },
+ ).catch((e) => {
new InstallFailedError(
{ pkg, version },
{