Code Monkey home page Code Monkey logo

candy's Introduction

candy's People

Contributors

alanoy avatar deepure avatar guo-yu avatar lvwzhen avatar shen2 avatar sofish avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

candy's Issues

按照readme安装没成功

你好,

今天看到你的项目,感觉好新奇,尝试安装了一下,但是遇到点小问题...

这里 提到了 app.sample.js ,但我在那个位置没找到那个文件,翻了下 app.js 似乎跟 下面 的代码不一样。

而下面的代码,我直接复制下来,填好信息,执行之后,报一个错误:
new Candy({ ^ TypeError: object is not a function

对 nodejs 我还是个新手,可能上面的问题比较弱弱,还望指教哈哈~~

安装错误,无法连接localhost:27017

安装提示无法连接localhost:27017,mongod已经安装并运行,需要做哪些配置呢?谢谢

events.js:72
        throw er; // Unhandled 'error' event
              ^
Error: failed to connect to [localhost:27017]
    at null.<anonymous> (/Users/lv/Documents/code/github/gitstar/node_modules/express-scaffold/node_modules/mongoose/node_modules/mongodb/lib/mongodb/connection/server.js:546:74)
    at EventEmitter.emit (events.js:106:17)
    at null.<anonymous> (/Users/lv/Documents/code/github/gitstar/node_modules/express-scaffold/node_modules/mongoose/node_modules/mongodb/lib/mongodb/connection/connection_pool.js:150:15)
    at EventEmitter.emit (events.js:98:17)
    at Socket.<anonymous> (/Users/lv/Documents/code/github/gitstar/node_modules/express-scaffold/node_modules/mongoose/node_modules/mongodb/lib/mongodb/connection/connection.js:533:10)
    at Socket.EventEmitter.emit (events.js:95:17)
    at net.js:833:16
    at process._tickCallback (node.js:415:13)

database.json的权限问题

这个文件的读写权限有问题,要设置777或者用root执行才可以,否则报错
fs.js:427
return binding.open(pathModule._makeLong(path), stringToFlags(flags), mode);
^
Error: EACCES, permission denied '/var/www/site/database.json'
at Object.fs.openSync (fs.js:427:18)
at Object.fs.writeFileSync (fs.js:966:15)
at Object.exports.set (/var/www/site/pkg.js:9:12)
at new Server (/var/www/site/app.js:22:9)
at Object. (/var/www/site/server.js:3:5)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Function.Module.runMain (module.js:497:10

mongodb 开启强制验证会无法连接

今天配置的时候发现的
首页 500 ,提示:
MongoError: not authorized for query on moeclub.configs
对 mongoose 的文档进行查阅之后,发现没有对 auth 的参数进行更多的描述。
看了下 express-scaffold 的数据库连接部分,发现返回的是:
mongoose.createConnection(host, dbname, port, options);
因为不了解 options 里的 auth 的填写方式,目前只能暂时关闭强制验证。
官方基本上使用 URI 进行连接,可以完好的支持强制验证。
我以前的处理方式是通过检测配置文件的参数,使用不同的链接格式进行连接
可能不算是 bug ,但是觉得挺麻烦的,希望能改进

登陆出错

刚更新了代码测试一下,结果无法登陆,页面报500,数据库为全新。

{"error":{"remind_in":7776000,"access_token":"6cb499299c6457562da83fc9a8c72e07","expires_in":7776000,"user_id":"1360545","code":0},"level":"error","message":"[object Object]","timestamp":"2013-09-02T14:30:54.313Z"}

theme 的一个 bug

[Error: template not found]
Error: template not found
    at /candy/node_modules/theme/node_modules/pkghub-render/libs/render.js:33:29
    at Hub.find (/candy/node_modules/theme/node_modules/pkghub/libs/pkghub.js:70:16)
    at Hub.load (/candy/node_modules/theme/node_modules/pkghub/libs/pkghub.js:96:44)
    at module.exports (/candy/node_modules/theme/node_modules/pkghub-render/libs/render.js:16:16)
    at Theme.render (/candy/node_modules/theme/libs/theme.js:90:12)
    at /candy/routes/home.js:8:19
    at Promise.<anonymous> (/candy/ctrlers/thread.js:56:13)
    at Promise.<anonymous> (/candy/node_modules/express-scaffold/node_modules/mongoose/node_modules/mpromise/lib/promise.js:177:8)
    at Promise.EventEmitter.emit (events.js:95:17)
    at Promise.emit (/candy/node_modules/express-scaffold/node_modules/mongoose/node_modules/mpromise/lib/promise.js:84:38)

登录时出错.

提示说code是必选参数?

同时首页获取文章列表也都报错了.

安装错误

262 silly lockFile ae1bacfa-candy-theme-flat-0-1-0 [email protected]
263 error Error: version not found: [email protected]
263 error at /usr/lib/node_modules/npm/lib/cache/add-named.js:123:12
263 error at saved (/usr/lib/node_modules/npm/node_modules/npm-registry-client/lib/get.js:141:7)
263 error at /usr/lib/node_modules/npm/node_modules/graceful-fs/polyfills.js:133:7
263 error at Object.oncomplete (fs.js:107:15)
264 error If you need help, you may report this entire log,

同500问题,theme not found

[Error: theme not found]
Error: theme not found
at /home/atbbs/node_modules/theme/node_modules/pkghub-render/libs/render.js:22:37
at [object Object].Hub.find (/home/atbbs/node_modules/theme/node_modules/pkghub/libs/pkghub.js:69:39)
at /home/atbbs/node_modules/theme/node_modules/pkghub/libs/pkghub.js:101:21
at /home/atbbs/node_modules/theme/node_modules/pkghub/libs/pkghub.js:38:16
at /home/atbbs/node_modules/npm/lib/ls.js:44:30
at /home/atbbs/node_modules/npm/node_modules/read-installed/read-installed.js:130:5
at /home/atbbs/node_modules/npm/node_modules/read-installed/read-installed.js:258:14
at asyncMap (/home/atbbs/node_modules/npm/node_modules/slide/lib/async-map.js:27:18)
at next (/home/atbbs/node_modules/npm/node_modules/read-installed/read-installed.js:215:5)
at /home/atbbs/node_modules/npm/node_modules/read-installed/read-installed.js:167:7
at LOOP (fs.js:1358:14)
at process._tickCallback (node.js:415:13)

我在折腾Nginx,似乎没有动过它。然后重启了nginx,就500了。

这个 bug 比较严重,编辑就挂

TypeError: Object function model(doc, fields, skipId) {
    if (!(this instanceof model))
      return new model(doc, fields, skipId);
    Model.call(this, doc, fields, skipId);
  } has no method 'checkAdmin'

上传文件挂掉

 events.js:72
        throw er; // Unhandled 'error' event
              ^
Error: ENOENT, open '/candy/public/uploads/f70b05c2a4db16f1e5f25c1a02924d37.jpg'

数据库连接出错

candy 版本:

mmm@Apollo[master]:~/git/candy
⌘ git log |head
commit f6803c45c424943a80b044b9c31dc65965a83004
Merge: 7872051 2be77f3
Author: Guo Yu <[email protected]>
Date:   Wed Mar 12 12:00:01 2014 +0800

    Merge pull request #30 from rippling/master

    Update README.md

commit 2be77f3eddb6250b2ca53ac88bfd2425624f518b

是直接在 candy clone 下来的仓库里 npm install 后 node app.js 跑起来的,运行了 node app.js 后没有任何输出信息,浏览器访问 http://localhost:3000 后产生如下出错信息:

/Users/mmm/git/candy/node_modules/express-scaffold/node_modules/connect-mongo/lib/connect-mongo.js:176
          throw new Error('Error connecting to database');
                ^
Error: Error connecting to database
    at /Users/mmm/git/candy/node_modules/express-scaffold/node_modules/connect-mongo/lib/connect-mongo.js:176:17
    at /Users/mmm/git/candy/node_modules/express-scaffold/node_modules/connect-mongo/node_modules/mongodb/lib/mongodb/db.js:273:18
    at /Users/mmm/git/candy/node_modules/express-scaffold/node_modules/connect-mongo/node_modules/mongodb/lib/mongodb/db.js:351:18
    at Server.close (/Users/mmm/git/candy/node_modules/express-scaffold/node_modules/connect-mongo/node_modules/mongodb/lib/mongodb/connection/server.js:210:38)
    at Db.close (/Users/mmm/git/candy/node_modules/express-scaffold/node_modules/connect-mongo/node_modules/mongodb/lib/mongodb/db.js:347:21)
    at /Users/mmm/git/candy/node_modules/express-scaffold/node_modules/connect-mongo/node_modules/mongodb/lib/mongodb/db.js:271:21
    at null.<anonymous> (/Users/mmm/git/candy/node_modules/express-scaffold/node_modules/connect-mongo/node_modules/mongodb/lib/mongodb/connection/server.js:563:7)
    at EventEmitter.emit (events.js:106:17)
    at null.<anonymous> (/Users/mmm/git/candy/node_modules/express-scaffold/node_modules/connect-mongo/node_modules/mongodb/lib/mongodb/connection/connection_pool.js:140:15)
    at EventEmitter.emit (events.js:98:17)

但是在 mongodb 里面,candy 数据库是确实创建成功了的:

vagrant@precise64:~$ mongo
MongoDB shell version: 2.4.9
connecting to: test
> show databases
admin   (empty)
candy   0.203125GB
local   0.078125GB
> use candy
switched to db candy
> show collections
boards
configs
system.indexes
users

是不是更新后哪里有点问题?
我的 nodejs 和 npm 安装的模块的版本信息:

node --version
v0.10.26

[email protected] /Users/mmm/git/candy
├── [email protected]
├── [email protected]
├─┬ [email protected]
│ └─┬ [email protected]
│   └─┬ [email protected]
│     ├── [email protected]
│     ├── [email protected]
│     ├─┬ [email protected]
│     │ └─┬ [email protected]
│     │   └── [email protected]
│     ├─┬ [email protected]
│     │ ├── [email protected]
│     │ ├── [email protected]
│     │ ├── [email protected]
│     │ └── [email protected]
│     ├─┬ [email protected]
│     │ ├── [email protected]
│     │ ├── [email protected]
│     │ └── [email protected]
│     ├── [email protected]
│     ├── [email protected]
│     ├── [email protected]
│     ├── [email protected]
│     ├── [email protected]
│     ├─┬ [email protected]
│     │ └── [email protected]
│     └── [email protected]
├─┬ [email protected]
│ ├─┬ [email protected]
│ │ └─┬ [email protected]
│ │   ├── [email protected]
│ │   └── [email protected]
│ ├── [email protected]
│ ├─┬ [email protected]
│ │ ├── [email protected]
│ │ ├── [email protected]
│ │ ├─┬ [email protected]
│ │ │ ├── [email protected]
│ │ │ ├── [email protected]
│ │ │ ├── [email protected]
│ │ │ ├── [email protected]
│ │ │ ├── [email protected]
│ │ │ └── [email protected]
│ │ ├── [email protected]
│ │ ├── [email protected]
│ │ ├── [email protected]
│ │ ├── [email protected]
│ │ ├── [email protected]
│ │ ├── [email protected]
│ │ ├── [email protected]
│ │ └─┬ [email protected]
│ │   └── [email protected]
│ ├─┬ [email protected]
│ │ ├── [email protected]
│ │ ├── [email protected]
│ │ └── [email protected]
│ ├─┬ [email protected]
│ │ ├── [email protected]
│ │ ├── [email protected]
│ │ ├─┬ [email protected]
│ │ │ └─┬ [email protected]
│ │ │   ├─┬ [email protected]
│ │ │   │ └── [email protected]
│ │ │   ├─┬ [email protected]
│ │ │   │ └── [email protected]
│ │ │   └── [email protected]
│ │ ├── [email protected]
│ │ ├─┬ [email protected]
│ │ │ └─┬ [email protected]
│ │ │   └─┬ [email protected]
│ │ │     ├── [email protected]
│ │ │     └── [email protected]
│ │ ├─┬ [email protected]
│ │ │ ├─┬ [email protected]
│ │ │ │ ├── [email protected]
│ │ │ │ └── [email protected]
│ │ │ ├─┬ [email protected]
│ │ │ │ └── [email protected]
│ │ │ └─┬ [email protected]
│ │ │   ├─┬ [email protected]
│ │ │   │ └── [email protected]
│ │ │   └─┬ [email protected]
│ │ │     └── [email protected]
│ │ └─┬ [email protected]
│ │   └─┬ [email protected]
│ │     ├─┬ [email protected]
│ │     │ └── [email protected]
│ │     ├─┬ [email protected]
│ │     │ └── [email protected]
│ │     └── [email protected]
│ ├─┬ [email protected]
│ │ ├─┬ [email protected]
│ │ │ ├─┬ [email protected]
│ │ │ │ └── [email protected]
│ │ │ ├── [email protected]
│ │ │ ├─┬ [email protected]
│ │ │ │ ├── [email protected]
│ │ │ │ ├── [email protected]
│ │ │ │ ├─┬ [email protected]
│ │ │ │ │ └─┬ [email protected]
│ │ │ │ │   └── [email protected]
│ │ │ │ ├─┬ [email protected]
│ │ │ │ │ ├── [email protected]
│ │ │ │ │ ├── [email protected]
│ │ │ │ │ ├── [email protected]
│ │ │ │ │ └── [email protected]
│ │ │ │ ├─┬ [email protected]
│ │ │ │ │ ├── [email protected]
│ │ │ │ │ ├── [email protected]
│ │ │ │ │ └── [email protected]
│ │ │ │ ├── [email protected]
│ │ │ │ ├── [email protected]
│ │ │ │ ├── [email protected]
│ │ │ │ ├── [email protected]
│ │ │ │ ├─┬ [email protected]
│ │ │ │ │ └── [email protected]
│ │ │ │ └── [email protected]
│ │ │ └─┬ [email protected]
│ │ │   └── [email protected]
│ │ ├── [email protected]
│ │ └─┬ [email protected]
│ │   └── [email protected]
│ └─┬ [email protected]
│   ├── [email protected]
│   ├─┬ [email protected]
│   │ ├── [email protected]
│   │ └── [email protected]
│   ├── [email protected]
│   ├── [email protected]
│   ├─┬ [email protected]
│   │ └── [email protected]
│   ├── [email protected]
│   ├── [email protected]
│   ├── [email protected]
│   └── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├─┬ [email protected]
│ ├─┬ [email protected]
│ │ └─┬ [email protected]
│ │   ├── [email protected]
│ │   └─┬ [email protected]
│ │     ├── [email protected]
│ │     └── [email protected]
│ └─┬ [email protected]
│   ├─┬ [email protected]
│   │ ├── [email protected]
│   │ ├── [email protected]
│   │ ├─┬ [email protected]
│   │ │ └─┬ [email protected]
│   │ │   ├─┬ [email protected]
│   │ │   │ └── [email protected]
│   │ │   ├─┬ [email protected]
│   │ │   │ └── [email protected]
│   │ │   └── [email protected]
│   │ ├── [email protected]
│   │ ├─┬ [email protected]
│   │ │ └─┬ [email protected]
│   │ │   └─┬ [email protected]
│   │ │     ├── [email protected]
│   │ │     └── [email protected]
│   │ ├─┬ [email protected]
│   │ │ ├─┬ [email protected]
│   │ │ │ ├── [email protected]
│   │ │ │ └── [email protected]
│   │ │ ├─┬ [email protected]
│   │ │ │ └── [email protected]
│   │ │ └─┬ [email protected]
│   │ │   ├─┬ [email protected]
│   │ │   │ └── [email protected]
│   │ │   └─┬ [email protected]
│   │ │     └── [email protected]
│   │ └─┬ [email protected]
│   │   └─┬ [email protected]
│   │     ├─┬ [email protected]
│   │     │ └── [email protected]
│   │     ├─┬ [email protected]
│   │     │ └── [email protected]
│   │     └── [email protected]
│   └─┬ [email protected]
│     ├─┬ [email protected]
│     │ ├── [email protected]
│     │ └── [email protected]
│     └─┬ [email protected]
│       ├─┬ [email protected]
│       │ └── [email protected]
│       ├─┬ [email protected]
│       │ └── [email protected]
│       └── [email protected]
└── [email protected]

首页显示“500 啊哦”错误

首页的 header 和 footer 都显示了,但是中间部分显示了如下两行:

500 啊哦,服务器或者数据库出问题了,麻烦联络管理员解决。
Error: theme not found

安装成功,但无法运行

运行 $ PORT=3001 node app.js 后,报错

module.js:340
throw err;
^
Error: Cannot find module 'npm'
at Function.Module._resolveFilename (module.js:338:15)
at Function.Module._load (module.js:280:25)
at Module.require (module.js:364:17)
at require (module.js:380:17)
at Object. (/Users/Han/mysite/candy/node_modules/theme/node_modules/pkghub/libs/npm.js:1:73)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:364:17)

无法进入admin面板

/Users/candy/node_modules/mongoose/lib/utils.js:419
throw err;
^
TypeError: Object # has no method 'query'
at /Users/candy/routes/sign.js:100:22
at /Users/candy/routes/sign.js:17:13
at /Users/candy/ctrlers/user.js:20:4
at /Users/candy/node_modules/mongoose/lib/utils.js:414:16
at /Users/candy/node_modules/mongoose/node_modules/mongodb/lib/mongodb/collection.js:594:7
at /Users/candy/node_modules/mongoose/node_modules/mongodb/lib/mongodb/utils.js:153:27
at /Users/candy/node_modules/mongoose/node_modules/mongodb/lib/mongodb/db.js:1658:9
at Server.Base._callHandler (/Users/candy/node_modules/mongoose/node_modules/mongodb/lib/mongodb/connection/base.js:378:41)
at /Users/candy/node_modules/mongoose/node_modules/mongodb/lib/mongodb/connection/server.js:468:18
at MongoReply.parseBody (/Users/candy/node_modules/mongoose/node_modules/mongodb/lib/mongodb/responses/mongo_reply.js:68:5)

Candy 现在基本瘫痪跑不起来了

从 GitHub 中克隆的代码,运行的时候遇到以下问题。

第一个问题是由 express-scaffold 引起的

express-scaffold 依赖的的 node-sass 没有指定版本号,最新版的 node-sass 已经把 middleware 独立到另外一个模块中,导致启动的时候报错。找到 express-scaffold 目录下面的 libs/server.js,把 95 行注销了,可以启动服务了。

// app.use(sass({ src: dirs.publics }));

多说账号登录问题

接下来使用第三方账号登录,结果又报下面的错……

[Error: code is required]
Error: code is required
    at Duoshuo.auth (/Users/minwe/Downloads/candy/node_modules/duoshuo/libs/duoshuo.js:21:30)
    at Object.handle (/Users/minwe/Downloads/candy/node_modules/duoshuo/libs/duoshuo.js:40:10)
    at next_layer (/Users/minwe/Downloads/candy/node_modules/express-scaffold/node_modules/express/lib/router/route.js:103:13)
    at Route.dispatch (/Users/minwe/Downloads/candy/node_modules/express-scaffold/node_modules/express/lib/router/route.js:107:5)
    at /Users/minwe/Downloads/candy/node_modules/express-scaffold/node_modules/express/lib/router/index.js:213:24
    at Function.proto.process_params (/Users/minwe/Downloads/candy/node_modules/express-scaffold/node_modules/express/lib/router/index.js:284:12)
    at next (/Users/minwe/Downloads/candy/node_modules/express-scaffold/node_modules/express/lib/router/index.js:207:19)
    at next (/Users/minwe/Downloads/candy/node_modules/express-scaffold/node_modules/express/lib/router/index.js:182:38)
    at Function.proto.handle (/Users/minwe/Downloads/candy/node_modules/express-scaffold/node_modules/express/lib/router/index.js:154:3)
    at Layer.router (/Users/minwe/Downloads/candy/node_modules/express-scaffold/node_modules/express/lib/router/index.js:24:12)

如何让参与者能更低成本的加入讨论?

这个是我做candy的本质问题,一年多前,写handybbs的时候,也是抱着这个目的去做,对于论坛管理者来说,能够低成本的搭建论坛。对于参与者来说,能够省却不停的重复注册(很多账户都是临时性的,为了获得某些资源),快速通过社交网络的授权来参与讨论。

这个是sn上一个同学的评论,可以看看:

3 points by LTaoist 2 days ago | link

挺好看的……v2ex向……
可惜,博客跟论坛真的是不同的……博客量少而精,重点在第一贴,评论是可有可无的,而且如果有评论,评论一般是对博主……论坛在于参与者活跃,广发有用帖,除了分享型主题,回复帖是很重要而且值得挖掘的……
1. 用第三方的评论系统日后很容易成为技术瓶颈,因为 论坛的核心就是回复 .
2. 改变了外观,但核质没变,论坛现在的瓶颈问题还没解决:信息噪音、通知机制、模型底层。v2ex将传统forum的看版变为节点尚可以说是一个大创新(解决信息噪音问题),但是这个其实没有多少改变。
。。。其实,用phpbb做个深度定制估计是可以做出这种样子的,但估计没有人在意吧。论坛的生产者很多其实是不那么在意界面的,反而是很多围观者一直希望界面好看点。但如果没有真正提供机制让围观者参与转换为生产者,界面怎么改都是一回事而已。
这几年风风火火很多对论坛的改进尝试:
  * http://v2ex.com/
  * http://moot.it/
  * http://try.discourse.org/
算上这个也算一个吧。但其实很少让人满意的……

npm install不通过

npm install后安装依赖包到kerberos时候

(node-gyp rebuild 2> builderror.log) || (exit 0)

在MAC环境下卡住了。而kerberos文档为零,请教原因。

Candy 0.2.0 开发计划

在完善后台管理部分未编码完成的API的同时,主要针对以下几个方向进行优化:

支持媒体文件的上传
支持主流云储存的媒体文件自动同步
支持截屏自动插入
针对移动版本的界面进行优化
这个版本的目的是让 candy 社区的用户可以更好的进行文件分享。

考虑到这对于国内社区用户来说是普遍需求,将会在0.2.0版本发布时完成以上四点功能。

启动应用时报错

使用 PORT=3001 node app.js启动时报错
···
/opt/candy/node_modules/express-scaffold/node_modules/express/lib/router/index.js:367
throw new Error(msg);
^
Error: Router.use() requires callback functions but got a [object Error]
at Function.proto.use (/opt/candy/node_modules/express-scaffold/node_modules/express/lib/router/index.js:367:11)
at Function.app.use (/opt/candy/node_modules/express-scaffold/node_modules/express/lib/application.js:199:16)
at new Server (/opt/candy/node_modules/express-scaffold/libs/server.js:95:7)
at Object. (/opt/candy/app.js:18:1)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Function.Module.runMain (module.js:497:10)
at startup (node.js:119:16)
···

上传附件出错

events.js:72
throw er; // Unhandled 'error' event
^
Error: ENOENT, open '/var/www/candy/public/uploads/d3f8c14abf0a12bfe49525999617e92b.jpg'

无法启动出错

(最新master分支)
系统: CentOs
node -v v0.10.26

/home/candy/candy/node_modules/express-scaffold/middlewares/auth.js:10
  return this.basic('admin', '123');
              ^
TypeError: Object #<Object> has no method 'basic'
    at /home/candy/candy/node_modules/express-scaffold/middlewares/auth.js:10:15
    at Object.<anonymous> (/home/candy/candy/node_modules/express-scaffold/middlewares/auth.js:11:3)
    at Module._compile (module.js:456:26)
    at Object.Module._extensions..js (module.js:474:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Module.require (module.js:364:17)
    at require (module.js:380:17)
    at Object.<anonymous> (/home/candy/candy/node_modules/express-scaffold/routes/index.js:2:12)
    at Module._compile (module.js:456:26)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.