lordofpomelo搭建失败,貌似generic-pool版本不对???辛苦官方大神帮忙看看

TypeError: callback is not a function
at Object.create (/Users/liuyoubin/workspace/nodespace/lordofpomelo/web-server/lib/dao/mysql/dao-pool.js:24:7)
at Pool.createResource (/Users/liuyoubin/workspace/nodespace/lordofpomelo/web-server/node_modules/generic-pool/lib/Pool.js:279:42)
at Pool.
dispense (/Users/liuyoubin/workspace/nodespace/lordofpomelo/web-server/node_modules/generic-pool/lib/Pool.js:210:12)
at Pool.acquire (/Users/liuyoubin/workspace/nodespace/lordofpomelo/web-server/node_modules/generic-pool/lib/Pool.js:405:10)
at Object.NND.query (/Users/liuyoubin/workspace/nodespace/lordofpomelo/web-server/lib/dao/mysql/mysql.js:25:8)
at Object.userDao.createUser (/Users/liuyoubin/workspace/nodespace/lordofpomelo/web-server/lib/dao/userDao.js:38:9)
at /Users/liuyoubin/workspace/nodespace/lordofpomelo/web-server/app.js:81:11
at callbacks (/Users/liuyoubin/workspace/nodespace/lordofpomelo/web-server/node_modules/express/lib/router/index.js:272:11)
at param (/Users/liuyoubin/workspace/nodespace/lordofpomelo/web-server/node_modules/express/lib/router/index.js:246:11)
at pass (/Users/liuyoubin/workspace/nodespace/lordofpomelo/web-server/node_modules/express/lib/router/index.js:253:5)

标签: lordofpomelo
youbinliu 在 4-17 11:27发布 分享到 weibo
2 回复
#1 youbinliu 4-17 11:28 回复

node -v
v7.9.0
npm -v
4.2.0

#2 {2} jtz0461 4-17 12:28 回复

https://github.com/NextZeus/lordofpomelo 这是群里某大神给我的 修改好的lordofpomelo版本,你试试吧。

youbinliu 4-17 14:29 回复

谢谢,我试试

youbinliu 4-17 14:46 回复

这个版本挺好用的,搭建起来了,谢谢
方便加下Q或者微信么,492202974,有时间可以交流交流

回到顶部