zensh / jsgen

[DEPRECATED]JsGen is a next generation,free, open source web software that you can generate a powerful website, such as blog, forum, etc. It is coded by pure JavaScript, based on Node.js, AngularJS, MongoDB.
http://angularjs.cn/
MIT License
1.56k stars 513 forks source link

macos 安装(node app.js install)不成功 #41

Closed unclejoe closed 10 years ago

unclejoe commented 10 years ago

restlog_main.log文件内容: [2014-02-22 21:48:02.457] [ERROR] angularjs.cn - { [Error: URL must be in the format mongodb://user:pass@host:port/dbname] domainThrown: true } Error: URL must be in the format mongodb://user:pass@host:port/dbname at Error () at exports.parse (/Users/Joe/Downloads/jsgen-master/node_modules/mongoskin/node_modules/mongodb/lib/mongodb/connection/url_parser.js:15:11) at Function.MongoClient.connect (/Users/Joe/Downloads/jsgen-master/node_modules/mongoskin/node_modules/mongodb/lib/mongodb/mongo_client.js:167:16) at SkinClass.SkinDb._open (/Users/Joe/Downloads/jsgen-master/node_modules/mongoskin/lib/db.js:36:25) at SkinClass.open (/Users/Joe/Downloads/jsgen-master/node_modules/mongoskin/lib/utils.js:127:14) at SkinClass.(anonymous function) as createCollection at then.then.collection.ensureIndex._id (/Users/Joe/Downloads/jsgen-master/api/install.js:10:22) at /Users/Joe/Downloads/jsgen-master/node_modules/thenjs/then.js:170:9 at process._tickDomainCallback (node.js:459:13)

修改dao/mongodao.js 文件中: module.exports = { db: jsGen.module.mongoskin.db('mongodb://'+mongoIp + ':' + mongoPort + '/?auto_reconnect=true', { database: mongoDbName }) 后再次运行 node app.js install 后restlog_main.log文件内容: [2014-02-22 21:51:36.828] [ERROR] angularjs.cn - { [TypeError: Property 'initGlobalConfig' of object # is not a function] domainThrown: true } TypeError: Property 'initGlobalConfig' of object # is not a function at then.then.then.then.globalConfig (/Users/Joe/Downloads/jsgen-master/api/install.js:20:25) at execute (/Users/Joe/Downloads/jsgen-master/node_modules/thenjs/then.js:261:26) at prototype.defer (/Users/Joe/Downloads/jsgen-master/node_modules/thenjs/then.js:276:9) at /Users/Joe/Downloads/jsgen-master/node_modules/mongoskin/node_modules/mongodb/lib/mongodb/db.js:1436:15 at Server.Base._callHandler (/Users/Joe/Downloads/jsgen-master/node_modules/mongoskin/node_modules/mongodb/lib/mongodb/connection/base.js:442:41) at /Users/Joe/Downloads/jsgen-master/node_modules/mongoskin/node_modules/mongodb/lib/mongodb/connection/server.js:485:18 at MongoReply.parseBody (/Users/Joe/Downloads/jsgen-master/node_modules/mongoskin/node_modules/mongodb/lib/mongodb/responses/mongo_reply.js:68:5) at null. (/Users/Joe/Downloads/jsgen-master/node_modules/mongoskin/node_modules/mongodb/lib/mongodb/connection/server.js:443:20) at EventEmitter.emit (events.js:95:17) at null. (/Users/Joe/Downloads/jsgen-master/node_modules/mongoskin/node_modules/mongodb/lib/mongodb/connection/connection_pool.js:191:13)

unclejoe commented 10 years ago

最新版mongoskin的api有变化,导致node app.js install出错!

zensh commented 10 years ago

嗯,我上午试了下npm是装不到1.3.X,只能装到0.6.1,等mongoskin的npm版更新了,我再更新。

zensh commented 10 years ago

Hi, 已经升级了, 可以使用最新mongoskin了