We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 173fe6c commit ce787eeCopy full SHA for ce787ee
pkgm.ts
@@ -549,8 +549,12 @@ async function* ls() {
549
}
550
551
async function uninstall(arg: string) {
552
- let found: { project: string } | undefined =
553
- (await hooks.usePantry().find(arg))?.[0];
+ let found: { project: string } | undefined;
+ try {
554
+ found = (await hooks.usePantry().find(arg))?.[0];
555
+ } catch {
556
+ console.error("%ci pantry not found, trying to find package another way", "color:blue");
557
+ }
558
if (!found) {
559
found = await plumbing.which(arg);
560
0 commit comments