运行brew update
时出现错误:
mkdir: /usr/local/var/homebrew/locks: Permission denied
Error: Can't create update lock in /usr/local/var/homebrew/locks!
Fix permissions by running:
sudo chown -R $(whoami) /usr/local/var/homebrew
当我运行sudo chown -R $(whoami) /usr/local/var/homebrew
时,我得到:
chown: /usr/local/var/homebrew: No such file or directory
有什么建议吗?