Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I fix "Error: Permission denied @ unlink_internal - .." when I try to brew cleanup

Tags:

homebrew

How can I fix:

Error: Permission denied @ unlink_internal - /usr/local/lib/node_modules/expo-cli/node_modules/.bin/detect-libc

when I try brew cleanup?

like image 324
gomamon Avatar asked Dec 18 '22 16:12

gomamon


1 Answers

This appears to be a permissions issue on your /usr/local/lib/ directory. Perhaps you could grant the current user the necessary permissions and then try re-executing the brew cleanup command. Something along the lines of:

sudo chown -R $(whoami) /usr/local/lib
brew cleanup

Hopefully that helps!

like image 136
Nathan Avatar answered May 18 '23 22:05

Nathan