When I try to run the app.js file created by express, I get the following error:
app.js
$ node app.js node.js:134 throw e; // process.nextTick
On Ubuntu 12.04 you have to add the export NODE_PATH=/usr/local/lib/node_modules to your /.bashrc to use globally installed modules.
export NODE_PATH=/usr/local/lib/node_modules