Meteor's most basic ("todos") example doesn't work properly on my windows 7 - no reactivity

时间:2015-05-12 23:31:27

标签: meteor

I've been using meteorjs for quite a while now on linux. But when I installed using the relatively new windows installer, I saw that the most basic example doesn't work on properly on my computer - win7.

The example is at: https://www.meteor.com/try/4 which runs perfectly on my ububtu, but on my windows - I see that no information is inserted into the db and all changes I make (add new "tasks") are only local to that page, and other tabs I opened were also local, and there was no "reactivity" (no information was shared between different pages).

I tried to troubleshoot it in some ways:

  1. I made sure that MONGO_URL is not set, and then I set MONGO_URL to another db, and saw that even though that db reported "connection accepted", the oplog nor the collection updated (tasks) have any new information.

  2. Tried different kinds of browsers (chrome, firefox). Both are latest in version.

  3. See no errors in chrome console.

I am assuming that all writes are made to minimongo, which doesn't pass them on.

Is this somehow a known issue? Any suggestions?

2 个答案:

答案 0 :(得分:4)

您可以尝试一些事项:

  1. 卸载流星&任何单独的mongo实例(包括cmd别名)。下载一份新的副本&安装。在新文件夹中创建一个新项目。如果数据库上有一些奇怪的错误锁定,那肯定会修复它。
  2. 下载robomongo(或使用meteor mongo)插入新的doc&看它是否坚持。如果是,你知道mongo不是问题。
  3. 检查是否已安装autopublishinsecure。如果是,当您完成第2步时,您应该会在应用中看到新的文档。如果这样做,那么数据库可以与应用程序通信,因此问题必须是客户端保存到数据库。尝试使用流星方法而不是直接insert。如果您没有看到新的文档,那么来自数据库的数据无法到达您的客户端,这意味着您的防火墙(是的,它也可以搞砸本地主机请求)也应该受到指责。关闭它,确保端口3000& 3001(mongo)允许完全访问&它不会对websockets做任何事情。

答案 1 :(得分:0)

我会尝试重新安装Visual Studio 2012和Python 2.6 / 2.7,然后重新安装Node然后重新安装Meteor。