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:38

    Go to package.json change "express-validator": "^6.6.0" to "express-validator": "^5.3.0", manually then run npm i

提交回复
热议问题