Dax Raad 8 месяцев назад
Родитель
Сommit
dbba4a97aa
1 измененных файлов с 6 добавлено и 3 удалено
  1. 6 3
      packages/opencode/src/bun/index.ts

+ 6 - 3
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 },
         {