force use npm registry

This commit is contained in:
Dax Raad 2025-06-23 20:23:37 -04:00
parent 0dc586faef
commit dbba4a97aa

View file

@ -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 },
{