Error: connect ECONNREFUSED 127.0.0.1:27017
at Object.exports._errnoException (util.js:870:11)
at exports._exceptionWithHostPort (util.js:893:20)
at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1057:14)
at Object.exports._errnoException (util.js:870:11)
at exports._exceptionWithHostPort (util.js:893:20)
at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1057:14)
2016-04-16
tab转2空格:
"tab_size": 2,
"translate_tabs_to_spaces": true
输出美化:
app.locals.pretty = true;
新body-parser:
npm install body-parser
var bodyParser = require('body-parser');
app.use(bodyParser.urlencoded({extended:false}));
"tab_size": 2,
"translate_tabs_to_spaces": true
输出美化:
app.locals.pretty = true;
新body-parser:
npm install body-parser
var bodyParser = require('body-parser');
app.use(bodyParser.urlencoded({extended:false}));
2016-04-15
运行页面时报没有默认引擎Error: No default engine was specified and no extension was provided.
2016-04-11
最近在跟着做,代码放在了git上,需要的同学自觉去拉,https://github.com/Pierce-Zhu/node_demo.git。尽量啦master分支,因为development分支是自己在做测试的,不断更新中。有什么问题需要探讨的也话可以找我。
2016-04-11