npm install module body-parser error error: Cannot find module'merge-descritptors'

This screen appeared when installing body-parser: Insert picture description here
I then started running my own server and started to report the following error: Insert picture description here
Then according to his instructions, I installed templates such as'merge-descriptors' one by one and kept me installing until:Insert picture description here

Solution:

First let it become the situation when body-parser is not installed (I have a compressed package myself) If there is no compressed package, you can try to uninstall this first and
then execute the following command

cnpm install body-parser

The problem is solved

Self-motivation

This world is not in the hands of those who ridicule, but in the hands of those who can withstand ridicule and criticism and move forward.

Guess you like

Origin blog.csdn.net/weixin_50001396/article/details/112511879