ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
(installs homebrew)brew doctor
(tells you whats wrong with homebrew's formulas, whats going in the 'cellar')brew update
(updates homebrew)brew upgrade your-package-here
(updates a given brew, like node, npm, yeoman, etc)brew link --overwrite your-package-here
(forces symlink creation)brew prune
(removes dead symlinks)brew [whatever] --dry-run
(tells you whats going to happen before you do it)brew install your-package-here
(installs whatever you want via homebrew, be careful when you install node via homebrew - leave npm out of the install and [follow these instructions] (https://gist.github.com/DanHerbert/9520689))/usr/local/Cellar
(where Homebrew installs stuff)/usr/local/var/your-program-here
(another place Homebrew apparently installs stuff)users/your-macosxname-here/.node
(where Homebrew puts node's stuff, if you install via homebrew - you shouldnt do this! Use the node OSX installer instead)users/your-macosxname-here/.node/lib/node_modules
(where npm installs stuff if you use Homebrew)