diff --git a/src/pkgx.ts b/src/pkgx.ts index 7a22654..edfcec1 100644 --- a/src/pkgx.ts +++ b/src/pkgx.ts @@ -47,6 +47,7 @@ async function setupPkgx() { } export async function installPackage(name: string) { + await setupPkgx(); await spawn("sh", [ "-c", `type ${name} > /dev/null 2> /dev/null || pkgx install ${name}`,