docs for the NPM install

This commit is contained in:
Jeremy Ashkenas 2010-06-28 01:06:53 -04:00
parent 677c7edf3f
commit 4ad9e82f50
2 changed files with 20 additions and 2 deletions

View File

@ -184,7 +184,16 @@ alert reverse '.eeffoC yrT'</textarea></div>
sudo bin/cake install</pre>
<p>
This provides the <tt>coffee</tt> command, which will execute CoffeeScripts
Alternatively, if you already have the
<a href="http://npmjs.org/">Node Package Manager</a> installed,
you can use that to grab the latest CoffeeScript:
</p>
<pre>
sudo npm install coffee-script</pre>
<p>
Both of these provide the <tt>coffee</tt> command, which will execute CoffeeScripts
under Node.js by default, but is also used to compile CoffeeScript
<tt>.coffee</tt> files into JavaScript, or to run an an interactive REPL.
When compiling to JavaScript, <tt>coffee</tt> writes the output

View File

@ -269,7 +269,16 @@ cubes = (function() {
sudo bin/cake install</pre>
<p>
This provides the <tt>coffee</tt> command, which will execute CoffeeScripts
Alternatively, if you already have the
<a href="http://npmjs.org/">Node Package Manager</a> installed,
you can use that to grab the latest CoffeeScript:
</p>
<pre>
sudo npm install coffee-script</pre>
<p>
Both of these provide the <tt>coffee</tt> command, which will execute CoffeeScripts
under Node.js by default, but is also used to compile CoffeeScript
<tt>.coffee</tt> files into JavaScript, or to run an an interactive REPL.
When compiling to JavaScript, <tt>coffee</tt> writes the output