Du måste definiera mongoose innan express. Enklast att bara definiera mongoose högst upp i app.js:
var mongoose = require('mongoose');
require('./models/Posts');
require('./models/Comments');
mongoose.connect('mongodb://localhost/news');
var express = require('express');
var path = require('path');
...