With Express 4 you have to install the body-parser module and use that instead:
var bodyParser = require('body-parser');
// ...
app.use(bodyParser.json({limit: '5mb'}));
app.use(bodyParser.urlencoded({limit: '5mb'}));
With Express 4 you have to install the body-parser module and use that instead:
var bodyParser = require('body-parser');
// ...
app.use(bodyParser.json({limit: '5mb'}));
app.use(bodyParser.urlencoded({limit: '5mb'}));