简体   繁体   English

如何在Windows上使用Mongo运行Geddy?

[英]How to run Geddy with Mongo on Windows?

I have a strange problem with the Geddy and Mongo under Windows. Windows下的Geddy和Mongo有一个奇怪的问题。 I'm completely new with Node.js and all this stuff, and try their sample app, which was fine until mongo attached. 我对Node.js和所有这些东西都是全新的,并尝试他们的示例应用程序,这很好,直到mongo附加。 Then it throw something like this on data save: 然后它在数据保存上抛出这样的东西:

c:\www\__node\wartex\node_modules\mongodb-wrapper\node_modules\mongodb\lib\mongo
db\connection\server.js:359
        throw err;
              ^
ReferenceError: model is not defined
    at utils.mixin.insert.insert (C:\Users\Alex\AppData\Roaming\npm\node_modules
\geddy\node_modules\model\lib\adapters\mongo\index.js:309:29)
    at utils.mixin.insert.insert (C:\Users\Alex\AppData\Roaming\npm\node_modules
\geddy\node_modules\model\lib\adapters\mongo\index.js:304:13)
    at exports.Collection.self.insert (c:\www\__node\wartex\node_modules\mongodb
-wrapper\lib\mongodb-wrapper.js:303:17)
    at insertAll (c:\www\__node\wartex\node_modules\mongodb-wrapper\node_modules
\mongodb\lib\mongodb\collection.js:315:12)
    at Collection.insert (c:\www\__node\wartex\node_modules\mongodb-wrapper\node
_modules\mongodb\lib\mongodb\collection.js:90:3)
    at exports.Collection.self.insert (c:\www\__node\wartex\node_modules\mongodb
-wrapper\lib\mongodb-wrapper.js:301:24)
    at exports.Collection.self.ensureIndex.cb (c:\www\__node\wartex\node_modules
\mongodb-wrapper\lib\mongodb-wrapper.js:201:17)
    at Db.collection (c:\www\__node\wartex\node_modules\mongodb-wrapper\node_mod
ules\mongodb\lib\mongodb\db.js:449:44)
    at EventEmitter.exports.Collection.self.ensureIndex.cb (c:\www\__node\wartex
\node_modules\mongodb-wrapper\lib\mongodb-wrapper.js:193:16)
    at EventEmitter.emit (events.js:99:17)
[Tue, 30 Oct 2012 22:05:21 GMT] ERROR Worker 10576 died.

which is not too cool. 这不是太酷。 It crashes on every save (create or update), still it create data and it is available for read after re-run geddy app. 它在每次保存(创建或更新)时崩溃,仍然会创建数据,并且在重新运行geddy app后可以读取。 Delete works just fine too. 删除工作也很好。

How this could be fixed? 如何解决这个问题?


Also, as a side question, maybe it is some better node.js framework, which have better documentation and crash reports, and shouldn't be re-run manually after each unexpected error? 另外,作为一个附带问题,也许它是一个更好的node.js框架,它有更好的文档和崩溃报告,并且不应该在每次意外错误后手动重新运行?

Looks like you were one of the few people who were affected by the recent model bug. 看起来你是受最近模型bug影响的为数不多的人之一。 If you reinstall Geddy you should be good to go. 如果你重新安装Geddy,你应该很高兴。

$ npm install -g geddy

Also, as far as your side question goes, I'm sorry that you've had some problems - have you tried asking your questions on the geddy mailing list? 另外,就你方面的问题而言,我很抱歉你遇到了一些问题 - 你是否尝试在geddy邮件列表上提问? And if you haven't seen the documentation for Geddy yet, you can check them out here: http://geddyjs.org/documentation 如果您还没有看过Geddy的文档,可以在这里查看: http//geddyjs.org/documentation

If you find anything missing, feel free to open an issue on github. 如果您发现任何遗漏,请随时在github上打开一个问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM