最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - How to install properly the latest version of CoffeeScript on Ubuntu (12.04) - Stack Overflow

programmeradmin3浏览0评论

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.

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.

Share Improve this question asked Jun 17, 2013 at 8:11 EgelEgel 1,9563 gold badges25 silver badges35 bronze badges
Add a comment  | 

3 Answers 3

Reset to default 11

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
发布评论

评论列表(0)

  1. 暂无评论