I own a Mac M1 with Monterey 12.3.1. I often experience problems uninstalling brew packages. Here an example:
pnpm with homebrew. Then, I tried to uninstall it:
brew uninstall pnpm
brew uninstall pnpm, the following message appears:
Error: No such keg: /opt/homebrew/Cellar/pnpm
Still, pnpm is installed:
$> which pnpm
So, it seems that homebrew is looking up at Cellar while the package is at
/opt/homebrew/bin. I don't get the concept of Cellar. Is it a homebrew configuration problem?
How to fix homebrew to uninstall correctly?