@sigama thanks your response. After I reinstalled the dependencies as suggested by @alisaduncan it works with both either of the code samples
app.use(bodyParser.json({type: [‘application/json’, ‘application/scim+json’]}));
or
app.use(bodyParser.json({ type: 'application/scim+json' }));