Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to install properly the latest version of CoffeeScript on Ubuntu (12.04)

How to install step by step the latest version of CoffeeScript on Ubuntu 12.04.

The current version of CoffeeScript is 1.6.3

Any comments are be very useful.

like image 471
Egel Avatar asked Jun 17 '13 08:06

Egel


People also ask

How do I know if CoffeeScript is installed?

The coffee and cake commands will first look in the current folder to see if CoffeeScript is installed locally, and use that version if so. This allows different versions of CoffeeScript to be installed globally and locally.

How do I use CoffeeScript in HTML?

If you are looking to implement coffee script in html, take a look at this. You simple need to add a <script type="text/coffeescript" src="app. coffee"></script> to execute coffee script code in an HTML file.


1 Answers

Install needed packages

$ sudo apt-get install git-core curl build-essential openssl libssl-dev

Install node.js

$ git clone https://github.com/nodejs/node.git && cd node
$ ./configure
$ make
$ sudo make install
$ cd

Install npm

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

Install CoffeeScript

$ sudo  npm install -g coffeescript
like image 76
Ajay Avatar answered Oct 26 '22 23:10

Ajay