doc: update instructions on home page

Document how to run the example on the home page in more detail.

Apparently our Windows brethren are prone to double-clicking on the
binary instead of running it from the command line.

Fixes #4854.
This commit is contained in:
Ben Noordhuis 2013-02-28 16:30:45 +01:00
parent 82357b87eb
commit 522668b5d9

View File

@ -89,7 +89,9 @@ http.createServer(function (req, res) {
}).listen(1337, '127.0.0.1');
console.log('Server running at http://127.0.0.1:1337/');</pre>
<p>To run the server, put the code into a file <code>example.js</code> and execute it with the <code>node</code> program:</p>
<p>To run the server, put the code into a file
<code>example.js</code> and execute it with the
<code>node</code> program from the command line:</p>
<pre class="sh_none">
% node example.js
Server running at http://127.0.0.1:1337/</pre>