How to Install CoffeeScript

Tadashi Shigeoka ·  Tue, August 6, 2013

Here’s how to install CoffeeScript.

Prerequisites

Installing from npm seems to be the standard method, so install nvm and Node.js first.

[Node.js] バージョン管理ツール「nvm」を Mac にインストールする方法

Installing CoffeeScript

Install easily with the npm install -g coffee-script command.

% npm install -g coffee-script
npm http GET https://registry.npmjs.org/coffee-script
npm http 200 https://registry.npmjs.org/coffee-script
/Users/your_username/.nvm/v0.6.19/bin/coffee -> /Users/your_username/.nvm/v0.6.19/lib/node_modules/coffee-script/bin/coffee
/Users/your_username/.nvm/v0.6.19/bin/cake -> /Users/your_username/.nvm/v0.6.19/lib/node_modules/coffee-script/bin/cake
[email protected] /Users/your_username/.nvm/v0.6.19/lib/node_modules/coffee-script

% source ~/.zshrc                                                    

% coffee -v
CoffeeScript version 1.6.1

Simple!

Reference Information

coffeescript を ubuntu 12.04 にインストール - {[Takuya71]}の日記

That’s all from the Gemba.