I own a Mac M1 with Monterey 12.3.1. I often experience problems uninstalling brew packages. Here an example:
I installed pnpm
with homebrew. Then, I tried to uninstall it:
brew uninstall pnpm
If I brew uninstall pnpm
, the following message appears:
Error: No such keg: /opt/homebrew/Cellar/pnpm
Still, pnpm is installed:
$> which pnpm
/opt/homebrew/bin/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?
brew uninstall pnpm --force
? This may cause it to uninstall the files, even if it thinks they aren't there