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

11,375

Solution 1

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).

Solution 2

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

Solution 3

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
Share:
11,375
Egel
Author by

Egel

A man, an overjoyed father, living with a passion for programming, open-source, and self-development.

Updated on June 13, 2022

Comments

  • Egel
    Egel almost 2 years

    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.

  • Egel
    Egel almost 11 years
    Yes, I agree with You, but when I wrote this question nvm wasn't support the latest version of CoffeeScript so from here the question and answer as well ;) cheers
  • dmmfll
    dmmfll over 8 years
    github.com/joyent/node.git has moved to github.com/nodejs/node
  • dmmfll
    dmmfll over 8 years
    https://github.com/joyent/node.git has moved to https://github.com/nodejs/node
  • Egel
    Egel over 6 years
    Hmmm... This answer is almost a copy of my answer below with some small changes in structure and big header... I think the headers wins...