We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 65b0326 commit 04dd632Copy full SHA for 04dd632
src/pkgx.ts
@@ -47,6 +47,7 @@ async function setupPkgx() {
47
}
48
49
export async function installPackage(name: string) {
50
+ await setupPkgx();
51
await spawn("sh", [
52
"-c",
53
`type ${name} > /dev/null 2> /dev/null || pkgx install ${name}`,
0 commit comments