700字范文,内容丰富有趣,生活中的好帮手!
700字范文 > 使用brew安装hexo报错--- Cowardly refusing to `sudo brew install`

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

时间:2020-12-13 08:53:07

相关推荐

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

最近准备用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 atyour own risk.

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

chown root:wheel /usr/local/bin/brew

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。