Here are the necessary steps to install CoffeeScript on Mac OS X 10.8 (Mountain Lion):
-
Install Command Lion Tools for Xcode
-
Install Homebrew:
ruby -e "$(curl -fsSkL raw.github.com/mxcl/homebrew/go)" -
Install Node.js with Homebrew:
brew install node -
Install npm (the version comes with node doesn't install CoffeeScript properly for some reason):
curl https://npmjs.org/install.sh | sh -
Install CoffeeScript with npm:
npm install -g coffee-script # add environment variable to ~/.bashrc echo "export NODE_PATH=/usr/local/lib/node_modules" . ~/.bashrc -
Done!
I had to google around to figure out the environment variable and the issue with npm. Hopefully this will help some folks in the similar need.