|
@@ -53,9 +53,12 @@ export namespace BunProc {
|
|
|
if (parsed.dependencies[pkg] === version) return mod
|
|
if (parsed.dependencies[pkg] === version) return mod
|
|
|
parsed.dependencies[pkg] = version
|
|
parsed.dependencies[pkg] = version
|
|
|
await Bun.write(pkgjson, JSON.stringify(parsed, null, 2))
|
|
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(
|
|
new InstallFailedError(
|
|
|
{ pkg, version },
|
|
{ pkg, version },
|
|
|
{
|
|
{
|