Skip to content

Commit dbba4a9

Browse files
committed
force use npm registry
1 parent 0dc586f commit dbba4a9

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

packages/opencode/src/bun/index.ts

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,12 @@ export namespace BunProc {
5353
if (parsed.dependencies[pkg] === version) return mod
5454
parsed.dependencies[pkg] = version
5555
await Bun.write(pkgjson, JSON.stringify(parsed, null, 2))
56-
await BunProc.run(["install"], {
57-
cwd: Global.Path.cache,
58-
}).catch((e) => {
56+
await BunProc.run(
57+
["install", "--registry", "https://registry.npmjs.org/"],
58+
{
59+
cwd: Global.Path.cache,
60+
},
61+
).catch((e) => {
5962
new InstallFailedError(
6063
{ pkg, version },
6164
{

0 commit comments

Comments
 (0)