首页
学习
活动
专区
圈层
工具
发布
社区首页 >专栏 >Mac电脑 - 解决 brew install 报错Error: /usr/local/Homebrew is not writable. 的问题

Mac电脑 - 解决 brew install 报错Error: /usr/local/Homebrew is not writable. 的问题

作者头像
小菠萝测试笔记
发布于 2021-06-01 21:58:08
发布于 2021-06-01 21:58:08
1.6K0
举报

问题背景

代码语言:javascript
复制
brew install autojump
Error: /usr/local/Homebrew is not writable. You should change the
ownership and permissions of /usr/local/Homebrew back to your
user account:
sudo chown -R $(whoami) /usr/local/Homebrew
Error: The following directories are not writable by your user:
/usr/local/Homebrew

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

And make sure that your user has write permission.
chmod u+w /usr/local/Homebrew

按照它提示的步骤执行即可

代码语言:javascript
复制
sudo chown -R $(whoami) /usr/local/Homebrew chmod u+w /usr/local/Homebrew
本文参与 腾讯云自媒体同步曝光计划,分享自作者个人站点/博客。
原始发表:2021-05-28 ,如有侵权请联系 cloudcommunity@tencent.com 删除
目录
  • 问题背景
  • 按照它提示的步骤执行即可
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档