Error: Cannot find module 'pug'
When there is a mismatch of module installation between Global and Local you will encounter this issue even if you have installed it all the modules. I would suggest you to install everything local to the project by including the dependency in the package.json
npm install --save express jade pug