Skip to content

Commit ca0fd22

Browse files
committed
Update v2 NPM installation instructions
1 parent a9bd53d commit ca0fd22

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/v2/index.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -671,7 +671,7 @@
671671
<p>The golden rule of CoffeeScript is: <em>“It’s just JavaScript.”</em> The code compiles one-to-one into the equivalent JS, and there is no interpretation at runtime. You can use any existing JavaScript library seamlessly from CoffeeScript (and vice-versa). The compiled output is readable, pretty-printed, and tends to run as fast or faster than the equivalent handwritten JavaScript.</p>
672672
<p><strong>Latest Version:</strong> <a href="http://github.com/jashkenas/coffeescript/tarball/2.0.0-alpha1">2.0.0-alpha1</a></p>
673673
<blockquote>
674-
<pre><code>npm install -g coffeescript</code></pre></blockquote>
674+
<pre><code>npm install -g coffeescript@next</code></pre></blockquote>
675675

676676
<h2>Overview</h2><p><em>CoffeeScript on the <span class="hidden-md-up">top</span><span class="hidden-sm-down">left</span>, compiled JavaScript output on the <span class="hidden-md-up">bottom</span><span class="hidden-sm-down">right</span>. The CoffeeScript is editable!</em></p>
677677
<aside class="code-example container-fluid bg-ribbed-dark" data-example="overview">
@@ -771,10 +771,10 @@ <h2>CoffeeScript 2</h2><p>CoffeeScript 2 generates JavaScript that uses the late
771771
<h2>Installation</h2><p>The command-line version of <code>coffee</code> is available as a <a href="http://nodejs.org/">Node.js</a> utility. The <a href="v2/browser-compiler/coffeescript.js">core compiler</a> however, does not depend on Node, and can be run in any JavaScript environment, or in the browser (see <a href="#try">Try CoffeeScript</a>).</p>
772772
<p>To install, first make sure you have a working copy of the latest stable version of <a href="http://nodejs.org/">Node.js</a>. You can then install CoffeeScript globally with <a href="http://npmjs.org">npm</a>:</p>
773773
<blockquote>
774-
<pre><code>npm install --global coffeescript</code></pre></blockquote>
774+
<pre><code>npm install --global coffeescript@next</code></pre></blockquote>
775775
<p>When you need CoffeeScript as a dependency of a project, within that project’s folder you can install it locally:</p>
776776
<blockquote>
777-
<pre><code>npm install --save coffeescript</code></pre></blockquote>
777+
<pre><code>npm install --save coffeescript@next</code></pre></blockquote>
778778

779779
</section>
780780
<section id="usage">

0 commit comments

Comments
 (0)