自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(5)
  • 收藏
  • 关注

原创 使用git控制台更新项目

使用工具:Git (版本:2.7.2)使用平台:csdn-code平台一、下载项目1、找到路径找到自己想要下载项目的路径,例如这里我用这个项目:注意:使用git clone命令要用http地址,而不是git开头的这个地址。我们换到http地址:这里是http://code.csdn.net/fd214333890/git_test.git2、在本地c

2016-12-08 00:02:33 6784

原创 node.js开发错误——DeprecationWarning: Mongoose: mpromise

使用mongoose进行数据库操作时,总是提示:(node:5684) DeprecationWarning: Mongoose: mpromise (mongoose's default promise library) is deprecated, plug in your own promise library instead: http://mongoosejs.com/docs/pr

2016-12-06 14:54:49 15496 1

原创 node.js开发错误——TypeError: req.flash is not a function

使用connect-flash模块时出现错误使用代码: req.flash('success', '注册成功');原因:中间件app.use(flash())位置放的不对。正确位置:参考:node.js开发错误——TypeError: Cannot set property 'XXX' of undefined

2016-12-05 17:33:59 4370 1

原创 node.js开发错误——TypeError: Cannot set property 'XXX' of undefined

在设置express-session时出现该错误。原因:中间件app.use(session());放的位置不对。要把session设置的中间件放在路由控制器之前。正确位置:var express = require('express');var path = require('path');var favicon = require('serve-favicon');var

2016-12-05 17:28:09 27128 1

原创 node.js开发错误——Error: Connection strategy not found

express 4.x使用[email protected]版本的运行node bin/www时控制台出现:Error: Connection strategy not found1、[email protected]版本之前是没问题的,可以直接换成0.8.2之钱版本。2、new MongoStore里面要有一个url属性store: new MongoSt

2016-12-04 22:23:29 3609

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除