// yarn add body-parser const bp = require('body-parser') app.use(bp.urlencoded({ extended: false })) app.use(bp.json()) //now express come with in build express.json() middleware so no need of body-parser app.use(express.json())