cnode社区源码布署出错
发布于 14小时前 作者 xm6677889900 57 次浏览 来自 问答

运行成功,但是一访问首页,出现如下错误, 求高手指点一下??? mongodb与redis已处于运行中。

AppledeMacBook-Air:nodeclub-master apple$ node app.js NodeClub listening on port 3000 God bless love… You can debug your app with http://localhost:3000

Started 2015-10-12T13:57:24.661Z GET / ::1 MONGO topics.find {"conditions":{"deleted":false},"options":{"skip":0,"limit":20,"sort":{"top":-1,"last_reply_at":-1},"fields":{}},"collectionName":"topics"} 9ms MONGO users.find {"conditions":{"is_block":false},"options":{"limit":10,"sort":{"score":-1}},"collectionName":"users"} 5ms MONGO topics.find {"conditions":{"deleted":false,"tab":{"$ne":"job"},"reply_count":0},"options":{"limit":5,"sort":{"create_at":-1},"fields":{}},"collectionName":"topics"} 5ms Cache set tops 0ms Cache set no_reply_topics 0ms Cache set {"deleted":false}pages 0ms Render view index (29ms) Completed 200 (65ms) _http_outgoing.js:517 throw new TypeError(‘first argument must be a string or Buffer’); ^

TypeError: first argument must be a string or Buffer at ServerResponse.OutgoingMessage.end (_http_outgoing.js:517:11) at /ah/work/nodejs/src/nodeclub-master/node_modules/loader/lib/loader.js:90:13 at /ah/work/nodejs/src/nodeclub-master/node_modules/less/lib/less/render.js:35:17 at /ah/work/nodejs/src/nodeclub-master/node_modules/less/lib/less/parse.js:63:17 at Object.finish [as _finish] (/ah/work/nodejs/src/nodeclub-master/node_modules/less/lib/less/parser/parser.js:183:28) at Object.ImportVisitor._onSequencerEmpty (/ah/work/nodejs/src/nodeclub-master/node_modules/less/lib/less/visitors/import-visitor.js:35:14) at ImportSequencer.tryRun (/ah/work/nodejs/src/nodeclub-master/node_modules/less/lib/less/visitors/import-sequencer.js:50:14) at Object.ImportVisitor.run (/ah/work/nodejs/src/nodeclub-master/node_modules/less/lib/less/visitors/import-visitor.js:29:25) at Object.Parser.parse (/ah/work/nodejs/src/nodeclub-master/node_modules/less/lib/less/parser/parser.js:189:22) at Object.parse (/ah/work/nodejs/src/nodeclub-master/node_modules/less/lib/less/parse.js:61:18) at Object.render (/ah/work/nodejs/src/nodeclub-master/node_modules/less/lib/less/render.js:25:18) at /ah/work/nodejs/src/nodeclub-master/node_modules/loader/lib/loader.js:83:12 at FSReqWrap.readFileAfterClose [as oncomplete] (fs.js:380:3)

回到顶部