您的位置:首页 > 其它

使用brew安装hexo报错--- Cowardly refusing to `sudo brew install`

2016-07-04 10:00 423 查看
最近准备用hexo搭建自己的博客(https://jingwanli6666.github.io/正在建设当中,敬请期待),使用命令行安装node
brew install node
报如下的错误:

Error: Cowardly refusing to `sudo brew install`
You can use brew with sudo, but only if the brew executable is owned by root.
However, this is both not recommended and completely unsupported so do so at
your own risk.


这个主要是因为
brew
的权限不够,只需要更改brew命令的权限就可以

chown root:wheel /usr/local/bin/brew
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  brew 博客 mac