macOS 可使用 Homebrew 来安装 swiftenv 报错Error: The following directories are not writable by your user

Error: The following directories are not writable by your user:
/usr/local/share/man/man5
/usr/local/share/man/man7

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

And make sure that your user has write permission.
  chmod u+w /usr/local/share/man/man5 /usr/local/share/man/man7
localhost:~ jiachen$ sudo chown -R `whoami`:admin /usr/local/bin

权限问题

终端输入一下命令就好了
sudo chown -R whoami:admin /usr/local/bin
sudo chown -R whoami:admin /usr/local/share

你可能感兴趣的:(macOS 可使用 Homebrew 来安装 swiftenv 报错Error: The following directories are not writable by your user)