Development Environment OS X.
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
It's necessary have installed the Command Line Tools.
Check for any issues with the install:
Which in my case shows 3 warnings:
Python is installed at /Library/Frameworks/Python.framework
Unbrewed header files were found in /usr/local/include.
/usr/bin occurs before /usr/local/bin
I had installed an old version of python (probably downloaded from python.org). Just type
sudo rm -rf /Library/Frameworks/Python.framework/. After calling again
brew doctor I get the message "Broken symlinks were found. Remove them with
brew prune". So I call
brew prune, then again
brew doctor and now I only get the second error. This error is because I had node.js installed, so I just need to uninstall it:
#go to /usr/local/lib and delete any node and node_modules cd /usr/local/lib sudo rm -rf node* # go to /usr/local/include and delete any node and node_modules directory cd /usr/local/include sudo rm -rf node*
And that's all! Now I could install both python and node.js by calling
brew install ....
brew installs packages to their own directory
/usr/local/Cellar and then symlinks their files into