10

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 && brew cleanup


Reinstalled homebrew with:

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


$ brew update

Already up-to-date.

$ brew doctor

Your system is raring to brew.


Try running any install & I get the following output:

$ brew install node

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


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

Community
  • 1
  • 1
Karoh
  • 2,390
  • 3
  • 23
  • 29
  • @lenybernard I understand the install script location may have changed, but the proper response here is a comment, not an edit of the original question. – Hooked Nov 22 '13 at 17:41

2 Answers2

20

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

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

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

TessellatingHeckler
  • 27,511
  • 4
  • 48
  • 87
Pascal Belloncle
  • 11,184
  • 3
  • 56
  • 56
0

This thing told me to tell you to update that install command to

ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
mochabcha
  • 286
  • 2
  • 9