Install coffeescript on Mac os X

It is a simple way to install coffee-script. 
$ sudo npm install -g coffee-script

But if you do not have NPM(Node Package Manager), you can get this through node.js.

and try again.

And check version of node.js and coffeescript. 

$ node --version
$ coffee --version

Try this to check for coffee script.

$ coffee -e "console.log 'Hello World'"

No comments: