Option one: you can downgrade your express-validator
package version to 5.3.0
.
Run these commands:
npm uninstall express-validator
npm install express-validator@5.3.0
Second option you have is to follow the instructions by the official documentations by express-validator:Migration from v5 to v6