O'Reilly logo

Node Web Development by David Herron

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required