Express Validator Error: expressValidator is not a function

前端 未结 6 1097
孤街浪徒
孤街浪徒 2020-12-16 17:57

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         


        
6条回答
  •  遥遥无期
    2020-12-16 18:50

    Yeah! Even i had the same problem it took 6 hrs to find out the resolution i.e,You can change the version by writing the command in root folder (

    • Command

    npm install express-validator@5.3.1 --save-exact

提交回复
热议问题