猿问

node错误的问题

$ node app.js

E:\web\node\imooc1\node_modules\express\lib\express.js:99

      throw new Error('Most middleware (like ' + name + ') is no longer bundled

with Express and must be installed separately. Please see https://github.com/sen

chalabs/connect#middleware.');

      ^


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:\web\node\imooc1\node_modules\expre

ss\lib\express.js:99:13)

    at Object.<anonymous> (E:\web\node\imooc1\app.js:8:16)

    at Module._compile (module.js:409:26)

    at Object.Module._extensions..js (module.js:416:10)

    at Module.load (module.js:343:32)

    at Function.Module._load (module.js:300:12)

    at Function.Module.runMain (module.js:441:10)

    at startup (node.js:139:18)

    at node.js:968:3


阿強
浏览 2202回答 3
3回答

名分开就是姓名

这问题怎么叫node的错误啊,是node给你报出错误信息了。
随时随地看视频慕课网APP

相关分类

Node.js
我要回答