出现"Most middleware (like bodyParser) is no longer bundled with Express"错误怎么解决
命令行里选定指定路径然后输入 node app.js
会提示:
Error: Most middleware (like bodyParser) is no longer bundled with Express and m
ust be installed separately. Please see https://github.com/senchalabs/connect#mi
ddleware.
at Function.Object.defineProperty.get (E:\dcspace\node\imooc\node_modules\ex
press\lib\express.js:89:13)
at Object.<anonymous> (E:\dcspace\node\imooc\app.js:8:17)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Function.Module.runMain (module.js:497:10)
at startup (node.js:119:16)
at node.js:906:3
然后去他给的这个github上安装了connect()中间件,为什么还是无法启动,还是报这样的错呢