# don't forget to update your port tree first sudo port selfupdate # install coffee script using macport sudo port install nodejs node -v # install npm - the Node Package Manager git clone http://github.com/isaacs/npm.git cd npm sudo make install npm -v # now install coffee-script! sudo npm install -g coffee-script coffee -v # because TextMate doesn't inherit your regular PATH # you need to set a symbol link to /usr/bin # so that you can run coffee in your textmate which node /opt/local/bin/node which coffee /opt/local/bin/coffee cd /usr/bin sudo ln -s /opt/local/bin/node sudo ln -s /opt/local/bin/coffee # install textmate coffee-script bundle mkdir -p ~/Library/Application\ Support/TextMate/Bundles cd ~/Library/Application\ Support/TextMate/Bundles git clone git://github.com/jashkenas/coffee-script-tmbundle CoffeeScript.tmbundle # now you can use command + B to compile and display javascript in your textmate!