Ankit Kumar
Ankit Kumar

Reputation: 5

How can I remove dependency on body-parser?

I already installed express module and body-parser now I can use express to get all the things I required from the user and there's no need of body-parser anymore, so how do I remove it? when i start my server

Upvotes: 0

Views: 2232

Answers (2)

srknzl
srknzl

Reputation: 787

You can remove it with npm uninstall body-parser when you are in the folder where package.json file lives.

Upvotes: 0

Pawan Sharma
Pawan Sharma

Reputation: 2342

If your express version is greater than 4.16.0, then you do not need body parser at all as mentioned here -

https://stackoverflow.com/a/49704644/7895283

Upvotes: 1

Related Questions