mirror of
https://github.com/sst/opencode.git
synced 2025-08-04 13:30:52 +00:00
force use npm registry
This commit is contained in:
parent
0dc586faef
commit
dbba4a97aa
1 changed files with 6 additions and 3 deletions
|
@ -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 },
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue