为了账号安全,请及时绑定邮箱和手机立即绑定

运行node项目报错

运行node项目报错

Vol_蒲公英 2017-10-18 15:56:31
PS D:\LearningHeavy\Web project\blog> npm start> blog@0.0.0 start D:\LearningHeavy\Web project\blog> node ./bin/wwwD:\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 ELIFECYCLEnpm ERR! errno 1npm ERR! blog@0.0.0 start: `node ./bin/www`npm ERR! Exit status 1npm 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
查看完整描述

1 回答

?
Samaritan

TA贡献61条经验 获得超38个赞

295 行需要一个回调函数

查看完整回答
反对 回复 2017-10-31
  • 1 回答
  • 0 关注
  • 1523 浏览

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信