You are previewing Node Web Development.

Node Web Development

Cover of Node Web Development by David Herron Published by Packt Publishing
O'Reilly logo

Run a few commands; test your installation

Now that you've installed Node we want to do two things, verify that the installation was successful, and familiarize you with the command-line tools.

Node's command-line tools

The basic install of Node includes two commands, node and node-waf . We've already seen node in action. It's used either for running command-line scripts, or server processes. The other, node-waf, is a build tool for Node native extensions. Since it's for building native extensions we will not cover it in this book and you should consult the online documentation at nodejs.org.

The easiest way to verify your Node installation works is also the best way to get help with Node. Type the following:

$ node –-help
Usage: node [options] script.js ...

The best content for your career. Discover unlimited learning on demand for around $1/day.