How to install properly the latest version of CoffeeScript on Ubuntu (12.04)
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
i recommend using nvm (node version manager). it helps maintaining several versions of node and switching between them. it is also less OS intrusive.
after installing nvm, just run 'npm install -g coffeescript' (no sudo is required).
First, need to update the system and install necessary programs
sudo apt-get update
sudo apt-get install git-core curl build-essential openssl libssl-dev
Next, install globally using git the latest stable(master) node and npm
sudo git clone git://github.com/joyent/node.git
cd node/
sudo ./configure
sudo make
sudo make install
Now, check the versions of npm and node
npm -v #my version 1.2.25
node -v #my version v0.11.3-pre
After installed npm and node it's time to last piece - CoffeeScript
sudo npm install -g coffeescript
Check the version and that's all :)
coffee -v #my version 1.6.3