In my node app, I am using express. all works fine, But i am getting error in the cmd. I use all are updated modules...
cmd
my code :
Attention: With express version => 4.16.0 the body-parser middleware was added back under the methods express.urlencoded() and express.json()
express version => 4.16.0
body-parser
Which can be used as:
app.use(express.urlencoded({extended: true})); app.use(express.json());