猿问

运行node项目报错

PS D:\LearningHeavy\Web project\blog> npm start


> blog@0.0.0 start D:\LearningHeavy\Web project\blog

> node ./bin/www


D:\blog\node_modules\express\lib\application.js:295

    throw new Error('callback function required');

    ^


Error: callback function required

    at EventEmitter.engine (D:\LearningHeavy\Web project\blog\node_modules\express\lib\application.js:295:11)

    at Object.<anonymous> (D:\LearningHeavy\Web project\blog\app.js:16:5)

    at Module._compile (module.js:570:32)

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

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

    at tryModuleLoad (module.js:446:12)

    at Function.Module._load (module.js:438:3)

    at Module.require (module.js:497:17)

    at require (internal/module.js:20:19)

    at Object.<anonymous> (D:\LearningHeavy\Web project\blog\bin\www:7:11)

npm ERR! code ELIFECYCLE

npm ERR! errno 1

npm ERR! blog@0.0.0 start: `node ./bin/www`

npm ERR! Exit status 1

npm ERR!

npm ERR! Failed at the blog@0.0.0 start script.

npm ERR! This is probably not a problem with npm. There is likely additional logging output above.


npm ERR! A complete log of this run can be found in:

npm ERR!     C:\Users\Voter\AppData\Roaming\npm-cache\_logs\2017-10-18T07_54_23_831Z-debug.log

Vol_蒲公英
浏览 1524回答 1
1回答

Samaritan

295 行需要一个回调函数
随时随地看视频慕课网APP

相关分类

Node.js
我要回答