使用brew install *****报错无指定文件夹写入权限的解决办法

当遇到以下错误时

brew install watchman
Error: The following directories are not writable by your user:
/usr/local/share/man/man8

You should change the ownership of these directories to your user.
  sudo chown -R $(whoami) /usr/local/share/man/man8

其实报错信息中已经给出提示了,先sudo chown -R $(whoami) /usr/local/*,然后在brew install ******** 就好啦

猜你喜欢

转载自blog.csdn.net/qq_42199786/article/details/104130368