Homebrew gives me this error on macOS Monterey while using it:
Error: Permission denied @ apply2files - /usr/local/lib/docker/cli-plugins
How can I fix it?
Homebrew gives me this error on macOS Monterey while using it:
Error: Permission denied @ apply2files - /usr/local/lib/docker/cli-plugins
How can I fix it?
2
Answers
As written here https://flaviocopes.com/homebrew-fix-permission-denied-apply2files/ ,
if you had recently deleted Docker, you have to manually recreate the Docker folder:
Then run
You should have fixed the issue!
After that, you can delete the Docker application inside the Application folder
As noted by @JW, the accepted answer above…
Then running
Does not work for everyone (and did not work for me). What did work is what they suggested:
Here is the code to run:
As JW suggested, this link explains more: https://github.com/Homebrew/homebrew-core/issues/45009