“app.use(express.bodyParser())” 加入这个后启动报错
/usr/local/bin/node app.js
/Users/apple/Documents/workspace/testNode/node_modules/express/lib/express.js:89
throw new Error('Most middleware (like ' + name + ') is no longer bundle
^
Error: Most middleware (like bodyParser) is no longer bundled with Express and must be installed separately. Please see https://github.com/senchalabs/connect#middleware.
at Function.Object.defineProperty.get (/Users/apple/Documents/workspace/testNode/node_modules/express/lib/express.js:89:13)
at Object.<anonymous> (/Users/apple/Documents/workspace/testNode/app.js:8:16)
at Module._compile (module.js:460:26)
at Object.Module._extensions..js (module.js:478:10)
at Module.load (module.js:355:32)
at Function.Module._load (module.js:310:12)
at Function.Module.runMain (module.js:501:10)
at startup (node.js:129:16)
at node.js:814:3
Process finished with exit code 1