HOWTO:Install CoffeeScirpt in MacOSX(and Use Textmate)

安裝CoffeesSript in Your Mac OSX

1.Install Node.js

GO TO Node.js

Click “Download”

Install it .

2.Install npm

    curl http://npmjs.org/install.sh | sudo sh

3.Install CoffeeScript

    sudo npm install -g coffee-script

4.If You use Textmate , you can install textmate bundle. Using “command+B” preview your code.

which node
/usr/bin/node

which coffee
/usr/bin/coffee

cd /usr/bin
sudo ln -s /usr/bin/node
sudo ln -s /usr/bin/coffee

mkdir -p ~/Library/Application\ Support/TextMate/Bundles

cd ~/Library/Application\ Support/TextMate/Bundles
git clone git://github.com/jashkenas/coffee-script-tmbundle CoffeeScript.tmbundle
Comments

Comments

Google Analytics Alternative