自制软件安装问题 [英] Homebrew install issues

查看:87
本文介绍了自制软件安装问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在安装Brew时遇到了一些麻烦.所以我做了以下事情:

I am having some trouble with brew installs. So I have done the following:

通过以下方式卸载自制软件:

Uninstalled homebrew with:

$ rm -rf/usr/local/Cellar/usr/local/.git&&冲泡清理

$ rm -rf /usr/local/Cellar /usr/local/.git && brew cleanup


通过以下方式重新安装自制软件:


Reinstalled homebrew with:

$ ruby​​ -e" $(curl -fsSkL raw.github.com/mxcl/homebrew/go/install)'

$ ruby -e "$(curl -fsSkL raw.github.com/mxcl/homebrew/go/install)"


$ brew更新

$ brew update

已经是最新的.

$酿造医生

您的系统正在酝酿中.


尝试运行任何安装&我得到以下输出:


Try running any install & I get the following output:

$ brew安装节点

$ brew install node

错误:权限被拒绝-/Library/Caches/Homebrew/Formula/node.brewing

Error: Permission denied - /Library/Caches/Homebrew/Formula/node.brewing


这是怎么回事?这也给了我使用npm和yeoman的问题,我真的很想用它:(


What is going on here? This is also giving me issues with using npm and yeoman which I'd really like to use :(

推荐答案

您可能是与其他用户或以前与sudo一起安装brew的吗?

Did you perhaps install brew with an other user, or with sudo previously?

检查/Library/Caches/Homebrew的权限,并通过更改其所有者或权限来强制它对您的用户可写.

Check the permissions of /Library/Caches/Homebrew, and force it to be writable for your user, by either changing its owner, or its permissions.

您也可以尝试使用 https://gist.github.com/1173223,然后再次尝试安装.

You might also try to uninstall with something like https://gist.github.com/1173223 and try the install again.

这篇关于自制软件安装问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆