app.use(validator()); ^ TypeError: validator is not a function
问题 I am working on a project for my summer training and I was asked to create a login page using Node.js however, after installing express-validator and entered the codes I suppose to in the app.js file it prints out an error each time I run the app.js or the www in the bin file telling me " validator is not a function". And most importantly, I am using WebStorm as my IDE on Windows. This is the error it prints out; app.use(validator()); ^ TypeError: validator is not a function Here is the code