Managing Node.js application dependencies
So far in this chapter, you didn't have to use any third-party library. The applications that you developed were simple Hello World
applications that didn't require any third-party library to do their work. In real applications, you have to use libraries written by others. Node makes it very easy for developers to consume third-party libraries using npm. npm is the package manager for Node.js that comes bundled with Node. It is a command-line tool that allows you to publish new modules, downloads existing modules from the npm registry, and installs third-party modules. In this recipe, you will write another simple application, but that will use the Express framework. The goal of the recipe was to introduce you to the Node dependency management without getting bogged down by the application details.
Getting ready
To complete this recipe, you will need the rhc command-line client installed on your machine. Please refer to the Installing the...