We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 173fe6c commit b281ef3Copy full SHA for b281ef3
1 file changed
pkgm.ts
@@ -549,8 +549,15 @@ 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(
557
+ "%ci pantry not found, trying to find package another way",
558
+ "color:blue",
559
+ );
560
+ }
561
if (!found) {
562
found = await plumbing.which(arg);
563
0 commit comments