Homebrew error: "[email protected] is not a valid keg"

570 Views Asked by At

Every time I try to install or uninstall something using Homebrew, I got an error below.

"Error: /usr/local/opt/[email protected] is not a valid keg"

I checked symlink by typing "ls -ld /usr/local/opt /usr/local/opt/[email protected]", and got results below.

drwxrwxr-x  183 aiden0206  admin  5856 10  3 20:53 /usr/local/opt
lrwxr-xr-x    1 aiden0206  admin    24 10  3 20:53 /usr/local/opt/[email protected] -> ../Cellar/[email protected]/2.7.4

There seems to be no problem. The [email protected] in /usr/local/opt correctly points to the /Cellar directory. Is there any other cause of the problem?

Thank you.

0

There are 0 best solutions below