I\'m trying to install and use express-validator package. I\'ve installed the package version (6.0.0) and then in my server.js file the code is:
const bodyPa
app.use(expressValidator());
Replace this line with
app.use(expressValidator);