解决Mac通过 brew 安装报错的问题
文章目录
在 mac 上 通过 brew 安装 nginx 时候
brew install nginx
出现错误
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
And make sure that your user has write permission.
chmod u+w /usr/local/share/man/man8
可以通过一下方法来解决权限问题
终端输入
sudo chown -R \`whoami\`:admin /usr/local/bin
sudo chown -R \`whoami\`:admin /usr/local/share
评论
登录后参与技术讨论,分享你的经验与见解。
登录 / 注册暂无评论