Why did node.js body-parser report the wrong bodyParser.raw is not a function?

  node.js, question

A very simple piece of code, want to set raw entity size, because upload pictures lead to node request entity too large

Revision:

app.use(bodyParser.json({limit: "50mb"}));
 app.use(bodyParser.raw({limit: "50mb"}));  //there is an error here.
 app.use(bodyParser.urlencoded({limit: "50mb", extended: true, parameterLimit:50000}));

Yoursbody-parserWhat version?