下载cnodejs源码遇到问题
发布于 3 年前 作者 guojinlong 1790 次浏览 最后一次编辑是 2 年前 来自 问答

安装提供的步骤。启动了mongodb.启动项目后。访问首页。出现如下错误。请指教。

Started 2015-08-04T08:23:57.819Z GET / ::1 TypeError: Cannot read property ‘user’ of undefined at exports.authUser (/Users/jinlong/Code/nodeclub/middlewares/auth.js:94:18) at Layer.handle [as handle_request] (/Users/jinlong/Code/nodeclub/node_modules/express/lib/router/layer.js:76:5) at trim_prefix (/Users/jinlong/Code/nodeclub/node_modules/express/lib/router/index.js:270:13) at /Users/jinlong/Code/nodeclub/node_modules/express/lib/router/index.js:237:9 at Function.proto.process_params (/Users/jinlong/Code/nodeclub/node_modules/express/lib/router/index.js:312:12) at /Users/jinlong/Code/nodeclub/node_modules/express/lib/router/index.js:228:12 at Function.match_layer (/Users/jinlong/Code/nodeclub/node_modules/express/lib/router/index.js:295:3) at next (/Users/jinlong/Code/nodeclub/node_modules/express/lib/router/index.js:189:10) at Passport.initialize (/Users/jinlong/Code/nodeclub/node_modules/passport/lib/passport/middleware/initialize.js:69:5) at Layer.handle [as handle_request] (/Users/jinlong/Code/nodeclub/node_modules/express/lib/router/layer.js:76:5) at trim_prefix (/Users/jinlong/Code/nodeclub/node_modules/express/lib/router/index.js:270:13) at /Users/jinlong/Code/nodeclub/node_modules/express/lib/router/index.js:237:9 at Function.proto.process_params (/Users/jinlong/Code/nodeclub/node_modules/express/lib/router/index.js:312:12) at /Users/jinlong/Code/nodeclub/node_modules/express/lib/router/index.js:228:12 at Function.match_layer (/Users/jinlong/Code/nodeclub/node_modules/express/lib/router/index.js:295:3) at next (/Users/jinlong/Code/nodeclub/node_modules/express/lib/router/index.js:189:10) at session (/Users/jinlong/Code/nodeclub/node_modules/express-session/index.js:145:61) at Layer.handle [as handle_request] (/Users/jinlong/Code/nodeclub/node_modules/express/lib/router/layer.js:76:5) at trim_prefix (/Users/jinlong/Code/nodeclub/node_modules/express/lib/router/index.js:270:13) at /Users/jinlong/Code/nodeclub/node_modules/express/lib/router/index.js:237:9 at Function.proto.process_params (/Users/jinlong/Code/nodeclub/node_modules/express/lib/router/index.js:312:12) at /Users/jinlong/Code/nodeclub/node_modules/express/lib/router/index.js:228:12 at Function.match_layer (/Users/jinlong/Code/nodeclub/node_modules/express/lib/router/index.js:295:3) at next (/Users/jinlong/Code/nodeclub/node_modules/express/lib/router/index.js:189:10) at compression (/Users/jinlong/Code/nodeclub/node_modules/compression/index.js:217:5) at Layer.handle [as handle_request] (/Users/jinlong/Code/nodeclub/node_modules/express/lib/router/layer.js:76:5) at trim_prefix (/Users/jinlong/Code/nodeclub/node_modules/express/lib/router/index.js:270:13) at /Users/jinlong/Code/nodeclub/node_modules/express/lib/router/index.js:237:9 at Function.proto.process_params (/Users/jinlong/Code/nodeclub/node_modules/express/lib/router/index.js:312:12) at /Users/jinlong/Code/nodeclub/node_modules/express/lib/router/index.js:228:12 at Function.match_layer (/Users/jinlong/Code/nodeclub/node_modules/express/lib/router/index.js:295:3) at next (/Users/jinlong/Code/nodeclub/node_modules/express/lib/router/index.js:189:10) at cookieParser (/Users/jinlong/Code/nodeclub/node_modules/cookie-parser/index.js:34:14) at Layer.handle [as handle_request] (/Users/jinlong/Code/nodeclub/node_modules/express/lib/router/layer.js:76:5) at trim_prefix (/Users/jinlong/Code/nodeclub/node_modules/express/lib/router/index.js:270:13) at /Users/jinlong/Code/nodeclub/node_modules/express/lib/router/index.js:237:9 at Function.proto.process_params (/Users/jinlong/Code/nodeclub/node_modules/express/lib/router/index.js:312:12) at /Users/jinlong/Code/nodeclub/node_modules/express/lib/router/index.js:228:12 at Function.match_layer (/Users/jinlong/Code/nodeclub/node_modules/express/lib/router/index.js:295:3) at next (/Users/jinlong/Code/nodeclub/node_modules/express/lib/router/index.js:189:10) at methodOverride (/Users/jinlong/Code/nodeclub/node_modules/method-override/index.js:58:5) at Layer.handle [as handle_request] (/Users/jinlong/Code/nodeclub/node_modules/express/lib/router/layer.js:76:5) at trim_prefix (/Users/jinlong/Code/nodeclub/node_modules/express/lib/router/index.js:270:13) at /Users/jinlong/Code/nodeclub/node_modules/express/lib/router/index.js:237:9 at Function.proto.process_params (/Users/jinlong/Code/nodeclub/node_modules/express/lib/router/index.js:312:12) at /Users/jinlong/Code/nodeclub/node_modules/express/lib/router/index.js:228:12 at Function.match_layer (/Users/jinlong/Code/nodeclub/node_modules/express/lib/router/index.js:295:3) at next (/Users/jinlong/Code/nodeclub/node_modules/express/lib/router/index.js:189:10) at urlencodedParser (/Users/jinlong/Code/nodeclub/node_modules/body-parser/lib/types/urlencoded.js:72:36) at Layer.handle [as handle_request] (/Users/jinlong/Code/nodeclub/node_modules/express/lib/router/layer.js:76:5) at trim_prefix (/Users/jinlong/Code/nodeclub/node_modules/express/lib/router/index.js:270:13) at /Users/jinlong/Code/nodeclub/node_modules/express/lib/router/index.js:237:9 at Function.proto.process_params (/Users/jinlong/Code/nodeclub/node_modules/express/lib/router/index.js:312:12) at /Users/jinlong/Code/nodeclub/node_modules/express/lib/router/index.js:228:12 at Function.match_layer (/Users/jinlong/Code/nodeclub/node_modules/express/lib/router/index.js:295:3) at next (/Users/jinlong/Code/nodeclub/node_modules/express/lib/router/index.js:189:10) at jsonParser (/Users/jinlong/Code/nodeclub/node_modules/body-parser/lib/types/json.js:83:36) at Layer.handle [as handle_request] (/Users/jinlong/Code/nodeclub/node_modules/express/lib/router/layer.js:76:5) at trim_prefix (/Users/jinlong/Code/nodeclub/node_modules/express/lib/router/index.js:270:13) at /Users/jinlong/Code/nodeclub/node_modules/express/lib/router/index.js:237:9 at Function.proto.process_params (/Users/jinlong/Code/nodeclub/node_modules/express/lib/router/index.js:312:12) at /Users/jinlong/Code/nodeclub/node_modules/express/lib/router/index.js:228:12 at Function.match_layer (/Users/jinlong/Code/nodeclub/node_modules/express/lib/router/index.js:295:3) at next (/Users/jinlong/Code/nodeclub/node_modules/express/lib/router/index.js:189:10) at frameguard (/Users/jinlong/Code/nodeclub/node_modules/helmet/node_modules/frameguard/index.js:32:5) at Layer.handle [as handle_request] (/Users/jinlong/Code/nodeclub/node_modules/express/lib/router/layer.js:76:5) at trim_prefix (/Users/jinlong/Code/nodeclub/node_modules/express/lib/router/index.js:270:13) at /Users/jinlong/Code/nodeclub/node_modules/express/lib/router/index.js:237:9 at Function.proto.process_params (/Users/jinlong/Code/nodeclub/node_modules/express/lib/router/index.js:312:12) at /Users/jinlong/Code/nodeclub/node_modules/express/lib/router/index.js:228:12 at Function.match_layer (/Users/jinlong/Code/nodeclub/node_modules/express/lib/router/index.js:295:3) at next (/Users/jinlong/Code/nodeclub/node_modules/express/lib/router/index.js:189:10) at responseTime (/Users/jinlong/Code/nodeclub/node_modules/response-time/index.js:69:5) at Layer.handle [as handle_request] (/Users/jinlong/Code/nodeclub/node_modules/express/lib/router/layer.js:76:5) at trim_prefix (/Users/jinlong/Code/nodeclub/node_modules/express/lib/router/index.js:270:13) at /Users/jinlong/Code/nodeclub/node_modules/express/lib/router/index.js:237:9 at Function.proto.process_params (/Users/jinlong/Code/nodeclub/node_modules/express/lib/router/index.js:312:12) at /Users/jinlong/Code/nodeclub/node_modules/express/lib/router/index.js:228:12 at Function.match_layer (/Users/jinlong/Code/nodeclub/node_modules/express/lib/router/index.js:295:3) at next (/Users/jinlong/Code/nodeclub/node_modules/express/lib/router/index.js:189:10) at /Users/jinlong/Code/nodeclub/node_modules/express/lib/router/index.js:191:16 at Function.match_layer (/Users/jinlong/Code/nodeclub/node_modules/express/lib/router/index.js:295:3) at next (/Users/jinlong/Code/nodeclub/node_modules/express/lib/router/index.js:189:10) at /Users/jinlong/Code/nodeclub/node_modules/express/lib/router/index.js:191:16 at Function.match_layer (/Users/jinlong/Code/nodeclub/node_modules/express/lib/router/index.js:295:3) at next (/Users/jinlong/Code/nodeclub/node_modules/express/lib/router/index.js:189:10) at /Users/jinlong/Code/nodeclub/node_modules/loader/lib/loader.js:70:14 at Layer.handle [as handle_request] (/Users/jinlong/Code/nodeclub/node_modules/express/lib/router/layer.js:76:5) at trim_prefix (/Users/jinlong/Code/nodeclub/node_modules/express/lib/router/index.js:270:13) at /Users/jinlong/Code/nodeclub/node_modules/express/lib/router/index.js:237:9 at Function.proto.process_params (/Users/jinlong/Code/nodeclub/node_modules/express/lib/router/index.js:312:12) at /Users/jinlong/Code/nodeclub/node_modules/express/lib/router/index.js:228:12 at Function.match_layer (/Users/jinlong/Code/nodeclub/node_modules/express/lib/router/index.js:295:3) at next (/Users/jinlong/Code/nodeclub/node_modules/express/lib/router/index.js:189:10) at exports.render (/Users/jinlong/Code/nodeclub/middlewares/render.js:16:3) at Layer.handle [as handle_request] (/Users/jinlong/Code/nodeclub/node_modules/express/lib/router/layer.js:76:5) at trim_prefix (/Users/jinlong/Code/nodeclub/node_modules/express/lib/router/index.js:270:13) at /Users/jinlong/Code/nodeclub/node_modules/express/lib/router/index.js:237:9 at Function.proto.process_params (/Users/jinlong/Code/nodeclub/node_modules/express/lib/router/index.js:312:12) at /Users/jinlong/Code/nodeclub/node_modules/express/lib/router/index.js:228:12 at Function.match_layer (/Users/jinlong/Code/nodeclub/node_modules/express/lib/router/index.js:295:3) at next (/Users/jinlong/Code/nodeclub/node_modules/express/lib/router/index.js:189:10) at module.exports (/Users/jinlong/Code/nodeclub/middlewares/request_log.js:19:3) at Layer.handle [as handle_request] (/Users/jinlong/Code/nodeclub/node_modules/express/lib/router/layer.js:76:5) at trim_prefix (/Users/jinlong/Code/nodeclub/node_modules/express/lib/router/index.js:270:13) at /Users/jinlong/Code/nodeclub/node_modules/express/lib/router/index.js:237:9 at Function.proto.process_params (/Users/jinlong/Code/nodeclub/node_modules/express/lib/router/index.js:312:12) at /Users/jinlong/Code/nodeclub/node_modules/express/lib/router/index.js:228:12 at Function.match_layer (/Users/jinlong/Code/nodeclub/node_modules/express/lib/router/index.js:295:3) at next (/Users/jinlong/Code/nodeclub/node_modules/express/lib/router/index.js:189:10) at expressInit (/Users/jinlong/Code/nodeclub/node_modules/express/lib/middleware/init.js:23:5) at Layer.handle [as handle_request] (/Users/jinlong/Code/nodeclub/node_modules/express/lib/router/layer.js:76:5) at trim_prefix (/Users/jinlong/Code/nodeclub/node_modules/express/lib/router/index.js:270:13) at /Users/jinlong/Code/nodeclub/node_modules/express/lib/router/index.js:237:9 at Function.proto.process_params (/Users/jinlong/Code/nodeclub/node_modules/express/lib/router/index.js:312:12) at /Users/jinlong/Code/nodeclub/node_modules/express/lib/router/index.js:228:12 at Function.match_layer (/Users/jinlong/Code/nodeclub/node_modules/express/lib/router/index.js:295:3) at next (/Users/jinlong/Code/nodeclub/node_modules/express/lib/router/index.js:189:10) at query (/Users/jinlong/Code/nodeclub/node_modules/express/lib/middleware/query.js:28:5) at Layer.handle [as handle_request] (/Users/jinlong/Code/nodeclub/node_modules/express/lib/router/layer.js:76:5) at trim_prefix (/Users/jinlong/Code/nodeclub/node_modules/express/lib/router/index.js:270:13) at /Users/jinlong/Code/nodeclub/node_modules/express/lib/router/index.js:237:9 at Function.proto.process_params (/Users/jinlong/Code/nodeclub/node_modules/express/lib/router/index.js:312:12) at /Users/jinlong/Code/nodeclub/node_modules/express/lib/router/index.js:228:12 at Function.match_layer (/Users/jinlong/Code/nodeclub/node_modules/express/lib/router/index.js:295:3) at next (/Users/jinlong/Code/nodeclub/node_modules/express/lib/router/index.js:189:10) at Function.proto.handle (/Users/jinlong/Code/nodeclub/node_modules/express/lib/router/index.js:165:3) at Function.app.handle (/Users/jinlong/Code/nodeclub/node_modules/express/lib/application.js:141:10) at Server.app (/Users/jinlong/Code/nodeclub/node_modules/express/lib/express.js:28:9) at emitTwo (events.js:87:13) at Server.emit (events.js:169:7) at HTTPParser.parserOnIncoming [as onIncoming] (_http_server.js:471:12) at HTTPParser.parserOnHeadersComplete (_http_common.js:88:23) at Socket.socketOnData (_http_server.js:322:22) at emitOne (events.js:77:13) at Socket.emit (events.js:166:7) at readableAddChunk (_stream_readable.js:145:16) at Socket.Readable.push (_stream_readable.js:109:10) at TCP.onread (net.js:509:20)

Completed 500 (14ms)

Started 2015-08-04T08:23:57.993Z GET /favicon.ico ::1 TypeError: Cannot read property ‘user’ of undefined at exports.authUser (/Users/jinlong/Code/nodeclub/middlewares/auth.js:94:18) at Layer.handle [as handle_request] (/Users/jinlong/Code/nodeclub/node_modules/express/lib/router/layer.js:76:5) at trim_prefix (/Users/jinlong/Code/nodeclub/node_modules/express/lib/router/index.js:270:13) at /Users/jinlong/Code/nodeclub/node_modules/express/lib/router/index.js:237:9 at Function.proto.process_params (/Users/jinlong/Code/nodeclub/node_modules/express/lib/router/index.js:312:12) at /Users/jinlong/Code/nodeclub/node_modules/express/lib/router/index.js:228:12 at Function.match_layer (/Users/jinlong/Code/nodeclub/node_modules/express/lib/router/index.js:295:3) at next (/Users/jinlong/Code/nodeclub/node_modules/express/lib/router/index.js:189:10) at Passport.initialize (/Users/jinlong/Code/nodeclub/node_modules/passport/lib/passport/middleware/initialize.js:69:5) at Layer.handle [as handle_request] (/Users/jinlong/Code/nodeclub/node_modules/express/lib/router/layer.js:76:5) at trim_prefix (/Users/jinlong/Code/nodeclub/node_modules/express/lib/router/index.js:270:13) at /Users/jinlong/Code/nodeclub/node_modules/express/lib/router/index.js:237:9 at Function.proto.process_params (/Users/jinlong/Code/nodeclub/node_modules/express/lib/router/index.js:312:12) at /Users/jinlong/Code/nodeclub/node_modules/express/lib/router/index.js:228:12 at Function.match_layer (/Users/jinlong/Code/nodeclub/node_modules/express/lib/router/index.js:295:3) at next (/Users/jinlong/Code/nodeclub/node_modules/express/lib/router/index.js:189:10) at session (/Users/jinlong/Code/nodeclub/node_modules/express-session/index.js:145:61) at Layer.handle [as handle_request] (/Users/jinlong/Code/nodeclub/node_modules/express/lib/router/layer.js:76:5) at trim_prefix (/Users/jinlong/Code/nodeclub/node_modules/express/lib/router/index.js:270:13) at /Users/jinlong/Code/nodeclub/node_modules/express/lib/router/index.js:237:9 at Function.proto.process_params (/Users/jinlong/Code/nodeclub/node_modules/express/lib/router/index.js:312:12) at /Users/jinlong/Code/nodeclub/node_modules/express/lib/router/index.js:228:12 at Function.match_layer (/Users/jinlong/Code/nodeclub/node_modules/express/lib/router/index.js:295:3) at next (/Users/jinlong/Code/nodeclub/node_modules/express/lib/router/index.js:189:10) at compression (/Users/jinlong/Code/nodeclub/node_modules/compression/index.js:217:5) at Layer.handle [as handle_request] (/Users/jinlong/Code/nodeclub/node_modules/express/lib/router/layer.js:76:5) at trim_prefix (/Users/jinlong/Code/nodeclub/node_modules/express/lib/router/index.js:270:13) at /Users/jinlong/Code/nodeclub/node_modules/express/lib/router/index.js:237:9 at Function.proto.process_params (/Users/jinlong/Code/nodeclub/node_modules/express/lib/router/index.js:312:12) at /Users/jinlong/Code/nodeclub/node_modules/express/lib/router/index.js:228:12 at Function.match_layer (/Users/jinlong/Code/nodeclub/node_modules/express/lib/router/index.js:295:3) at next (/Users/jinlong/Code/nodeclub/node_modules/express/lib/router/index.js:189:10) at cookieParser (/Users/jinlong/Code/nodeclub/node_modules/cookie-parser/index.js:34:14) at Layer.handle [as handle_request] (/Users/jinlong/Code/nodeclub/node_modules/express/lib/router/layer.js:76:5) at trim_prefix (/Users/jinlong/Code/nodeclub/node_modules/express/lib/router/index.js:270:13) at /Users/jinlong/Code/nodeclub/node_modules/express/lib/router/index.js:237:9 at Function.proto.process_params (/Users/jinlong/Code/nodeclub/node_modules/express/lib/router/index.js:312:12) at /Users/jinlong/Code/nodeclub/node_modules/express/lib/router/index.js:228:12 at Function.match_layer (/Users/jinlong/Code/nodeclub/node_modules/express/lib/router/index.js:295:3) at next (/Users/jinlong/Code/nodeclub/node_modules/express/lib/router/index.js:189:10) at methodOverride (/Users/jinlong/Code/nodeclub/node_modules/method-override/index.js:58:5) at Layer.handle [as handle_request] (/Users/jinlong/Code/nodeclub/node_modules/express/lib/router/layer.js:76:5) at trim_prefix (/Users/jinlong/Code/nodeclub/node_modules/express/lib/router/index.js:270:13) at /Users/jinlong/Code/nodeclub/node_modules/express/lib/router/index.js:237:9 at Function.proto.process_params (/Users/jinlong/Code/nodeclub/node_modules/express/lib/router/index.js:312:12) at /Users/jinlong/Code/nodeclub/node_modules/express/lib/router/index.js:228:12 at Function.match_layer (/Users/jinlong/Code/nodeclub/node_modules/express/lib/router/index.js:295:3) at next (/Users/jinlong/Code/nodeclub/node_modules/express/lib/router/index.js:189:10) at urlencodedParser (/Users/jinlong/Code/nodeclub/node_modules/body-parser/lib/types/urlencoded.js:72:36) at Layer.handle [as handle_request] (/Users/jinlong/Code/nodeclub/node_modules/express/lib/router/layer.js:76:5) at trim_prefix (/Users/jinlong/Code/nodeclub/node_modules/express/lib/router/index.js:270:13) at /Users/jinlong/Code/nodeclub/node_modules/express/lib/router/index.js:237:9 at Function.proto.process_params (/Users/jinlong/Code/nodeclub/node_modules/express/lib/router/index.js:312:12) at /Users/jinlong/Code/nodeclub/node_modules/express/lib/router/index.js:228:12 at Function.match_layer (/Users/jinlong/Code/nodeclub/node_modules/express/lib/router/index.js:295:3) at next (/Users/jinlong/Code/nodeclub/node_modules/express/lib/router/index.js:189:10) at jsonParser (/Users/jinlong/Code/nodeclub/node_modules/body-parser/lib/types/json.js:83:36) at Layer.handle [as handle_request] (/Users/jinlong/Code/nodeclub/node_modules/express/lib/router/layer.js:76:5) at trim_prefix (/Users/jinlong/Code/nodeclub/node_modules/express/lib/router/index.js:270:13) at /Users/jinlong/Code/nodeclub/node_modules/express/lib/router/index.js:237:9 at Function.proto.process_params (/Users/jinlong/Code/nodeclub/node_modules/express/lib/router/index.js:312:12) at /Users/jinlong/Code/nodeclub/node_modules/express/lib/router/index.js:228:12 at Function.match_layer (/Users/jinlong/Code/nodeclub/node_modules/express/lib/router/index.js:295:3) at next (/Users/jinlong/Code/nodeclub/node_modules/express/lib/router/index.js:189:10) at frameguard (/Users/jinlong/Code/nodeclub/node_modules/helmet/node_modules/frameguard/index.js:32:5) at Layer.handle [as handle_request] (/Users/jinlong/Code/nodeclub/node_modules/express/lib/router/layer.js:76:5) at trim_prefix (/Users/jinlong/Code/nodeclub/node_modules/express/lib/router/index.js:270:13) at /Users/jinlong/Code/nodeclub/node_modules/express/lib/router/index.js:237:9 at Function.proto.process_params (/Users/jinlong/Code/nodeclub/node_modules/express/lib/router/index.js:312:12) at /Users/jinlong/Code/nodeclub/node_modules/express/lib/router/index.js:228:12 at Function.match_layer (/Users/jinlong/Code/nodeclub/node_modules/express/lib/router/index.js:295:3) at next (/Users/jinlong/Code/nodeclub/node_modules/express/lib/router/index.js:189:10) at responseTime (/Users/jinlong/Code/nodeclub/node_modules/response-time/index.js:69:5) at Layer.handle [as handle_request] (/Users/jinlong/Code/nodeclub/node_modules/express/lib/router/layer.js:76:5) at trim_prefix (/Users/jinlong/Code/nodeclub/node_modules/express/lib/router/index.js:270:13) at /Users/jinlong/Code/nodeclub/node_modules/express/lib/router/index.js:237:9 at Function.proto.process_params (/Users/jinlong/Code/nodeclub/node_modules/express/lib/router/index.js:312:12) at /Users/jinlong/Code/nodeclub/node_modules/express/lib/router/index.js:228:12 at Function.match_layer (/Users/jinlong/Code/nodeclub/node_modules/express/lib/router/index.js:295:3) at next (/Users/jinlong/Code/nodeclub/node_modules/express/lib/router/index.js:189:10) at /Users/jinlong/Code/nodeclub/node_modules/express/lib/router/index.js:191:16 at Function.match_layer (/Users/jinlong/Code/nodeclub/node_modules/express/lib/router/index.js:295:3) at next (/Users/jinlong/Code/nodeclub/node_modules/express/lib/router/index.js:189:10) at /Users/jinlong/Code/nodeclub/node_modules/express/lib/router/index.js:191:16 at Function.match_layer (/Users/jinlong/Code/nodeclub/node_modules/express/lib/router/index.js:295:3) at next (/Users/jinlong/Code/nodeclub/node_modules/express/lib/router/index.js:189:10) at /Users/jinlong/Code/nodeclub/node_modules/loader/lib/loader.js:70:14 at Layer.handle [as handle_request] (/Users/jinlong/Code/nodeclub/node_modules/express/lib/router/layer.js:76:5) at trim_prefix (/Users/jinlong/Code/nodeclub/node_modules/express/lib/router/index.js:270:13) at /Users/jinlong/Code/nodeclub/node_modules/express/lib/router/index.js:237:9 at Function.proto.process_params (/Users/jinlong/Code/nodeclub/node_modules/express/lib/router/index.js:312:12) at /Users/jinlong/Code/nodeclub/node_modules/express/lib/router/index.js:228:12 at Function.match_layer (/Users/jinlong/Code/nodeclub/node_modules/express/lib/router/index.js:295:3) at next (/Users/jinlong/Code/nodeclub/node_modules/express/lib/router/index.js:189:10) at exports.render (/Users/jinlong/Code/nodeclub/middlewares/render.js:16:3) at Layer.handle [as handle_request] (/Users/jinlong/Code/nodeclub/node_modules/express/lib/router/layer.js:76:5) at trim_prefix (/Users/jinlong/Code/nodeclub/node_modules/express/lib/router/index.js:270:13) at /Users/jinlong/Code/nodeclub/node_modules/express/lib/router/index.js:237:9 at Function.proto.process_params (/Users/jinlong/Code/nodeclub/node_modules/express/lib/router/index.js:312:12) at /Users/jinlong/Code/nodeclub/node_modules/express/lib/router/index.js:228:12 at Function.match_layer (/Users/jinlong/Code/nodeclub/node_modules/express/lib/router/index.js:295:3) at next (/Users/jinlong/Code/nodeclub/node_modules/express/lib/router/index.js:189:10) at module.exports (/Users/jinlong/Code/nodeclub/middlewares/request_log.js:19:3) at Layer.handle [as handle_request] (/Users/jinlong/Code/nodeclub/node_modules/express/lib/router/layer.js:76:5) at trim_prefix (/Users/jinlong/Code/nodeclub/node_modules/express/lib/router/index.js:270:13) at /Users/jinlong/Code/nodeclub/node_modules/express/lib/router/index.js:237:9 at Function.proto.process_params (/Users/jinlong/Code/nodeclub/node_modules/express/lib/router/index.js:312:12) at /Users/jinlong/Code/nodeclub/node_modules/express/lib/router/index.js:228:12 at Function.match_layer (/Users/jinlong/Code/nodeclub/node_modules/express/lib/router/index.js:295:3) at next (/Users/jinlong/Code/nodeclub/node_modules/express/lib/router/index.js:189:10) at expressInit (/Users/jinlong/Code/nodeclub/node_modules/express/lib/middleware/init.js:23:5) at Layer.handle [as handle_request] (/Users/jinlong/Code/nodeclub/node_modules/express/lib/router/layer.js:76:5) at trim_prefix (/Users/jinlong/Code/nodeclub/node_modules/express/lib/router/index.js:270:13) at /Users/jinlong/Code/nodeclub/node_modules/express/lib/router/index.js:237:9 at Function.proto.process_params (/Users/jinlong/Code/nodeclub/node_modules/express/lib/router/index.js:312:12) at /Users/jinlong/Code/nodeclub/node_modules/express/lib/router/index.js:228:12 at Function.match_layer (/Users/jinlong/Code/nodeclub/node_modules/express/lib/router/index.js:295:3) at next (/Users/jinlong/Code/nodeclub/node_modules/express/lib/router/index.js:189:10) at query (/Users/jinlong/Code/nodeclub/node_modules/express/lib/middleware/query.js:28:5) at Layer.handle [as handle_request] (/Users/jinlong/Code/nodeclub/node_modules/express/lib/router/layer.js:76:5) at trim_prefix (/Users/jinlong/Code/nodeclub/node_modules/express/lib/router/index.js:270:13) at /Users/jinlong/Code/nodeclub/node_modules/express/lib/router/index.js:237:9 at Function.proto.process_params (/Users/jinlong/Code/nodeclub/node_modules/express/lib/router/index.js:312:12) at /Users/jinlong/Code/nodeclub/node_modules/express/lib/router/index.js:228:12 at Function.match_layer (/Users/jinlong/Code/nodeclub/node_modules/express/lib/router/index.js:295:3) at next (/Users/jinlong/Code/nodeclub/node_modules/express/lib/router/index.js:189:10) at Function.proto.handle (/Users/jinlong/Code/nodeclub/node_modules/express/lib/router/index.js:165:3) at Function.app.handle (/Users/jinlong/Code/nodeclub/node_modules/express/lib/application.js:141:10) at Server.app (/Users/jinlong/Code/nodeclub/node_modules/express/lib/express.js:28:9) at emitTwo (events.js:87:13) at Server.emit (events.js:169:7) at HTTPParser.parserOnIncoming [as onIncoming] (_http_server.js:471:12) at HTTPParser.parserOnHeadersComplete (_http_common.js:88:23) at Socket.socketOnData (_http_server.js:322:22) at emitOne (events.js:77:13) at Socket.emit (events.js:166:7) at readableAddChunk (_stream_readable.js:145:16) at Socket.Readable.push (_stream_readable.js:109:10) at TCP.onread (net.js:509:20)

4 回复

untitled1.png 貌似是session的问题,你安装redis了吗

@jiangli373 你好。我没有安装。我make test的时候看没有提示我安装。所以我就试了一下。

@jiangli373 谢谢。已经可以了。

回到顶部