Express module not found when installed with NPM
Use local installs for require(), and global installs for command-line apps.
If you need both, use the npm link
command.
Install express
npm install -g express
Create a new app
express your_app
cd into app directory
cd your_app
use npm link to resolve modules
npm link express
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.