Resolve the coexistent fault between body-parser and http-proxy
npm install coexist-parser-proxyshell
npm i -S coexist-parser-proxy
`
`javascript
const middleware = require('coexist-parser-proxy');
const express = require('express');
const app = express();
// ...
app.use(middleware);
// ...
app.use(bodyParser.json());
app.use(bodyParser.raw());
app.use(bodyParser.text());
// ...
app.use((req, res) => {
proxy.web(req, res, {target: 'http://mytarget.com:8080'});
})
``