Web applications 流星应用程序崩溃

Web applications 流星应用程序崩溃,web-applications,meteor,crash,Web Applications,Meteor,Crash,我在尝试启动应用程序时出错: enteW20150911-13:17:04.497(2)? (STDERR) W20150911-13:17:04.498(2)? (STDERR) /home/sanchezj/.meteor/packages/meteor-tool/.1.1.4.st5tu4++os.linux.x86_32+web.browser+web.cordova/mt-os.linux.x86_32/dev_bundle/server-lib/node_

我在尝试启动应用程序时出错:

    enteW20150911-13:17:04.497(2)? (STDERR)           W20150911-13:17:04.498(2)? (STDERR) /home/sanchezj/.meteor/packages/meteor-tool/.1.1.4.st5tu4++os.linux.x86_32+web.browser+web.cordova/mt-os.linux.x86_32/dev_bundle/server-lib/node_modules/fibers/future.js:245
W20150911-13:17:04.498(2)? (STDERR)                         throw(ex);
W20150911-13:17:04.498(2)? (STDERR)                               ^
W20150911-13:17:04.498(2)? (STDERR) TypeError: Cannot call method 'insert' of undefined
W20150911-13:17:04.498(2)? (STDERR)     at app/github_microscope/server/fixtures.js:6:28
W20150911-13:17:04.499(2)? (STDERR)     at app/github_microscope/server/fixtures.js:74:3
W20150911-13:17:04.499(2)? (STDERR)     at /home/sanchezj/microscope/.meteor/local/build/programs/server/boot.js:222:10
W20150911-13:17:04.499(2)? (STDERR)     at Array.forEach (native)
W20150911-13:17:04.499(2)? (STDERR)     at Function._.each._.forEach (/home/sanchezj/.meteor/packages/meteor-tool/.1.1.4.st5tu4++os.linux.x86_32+web.browser+web.cordova/mt-os.linux.x86_32/dev_bundle/server-lib/node_modules/underscore/underscore.js:79:11)
r code here
W20150911-13:17:10.424(2)? (STDERR)                         throw(ex);
W20150911-13:17:10.424(2)? (STDERR)                               ^
W20150911-13:17:10.427(2)? (STDERR) TypeError: Cannot call method 'insert' of undefined
W20150911-13:17:10.428(2)? (STDERR)     at app/github_microscope/server/fixtures.js:6:28
W20150911-13:17:10.428(2)? (STDERR)     at app/github_microscope/server/fixtures.js:74:3
W20150911-13:17:10.428(2)? (STDERR)     at /home/sanchezj/microscope/.meteor/local/build/programs/server/boot.js:222:10
W20150911-13:17:10.429(2)? (STDERR)     at Array.forEach (native)
W20150911-13:17:10.429(2)? (STDERR)     at Function._.each._.forEach (/home/sanchezj/.meteor/packages/meteor-tool/.1.1.4.st5tu4++os.linux.x86_32+web.browser+web.cordova/mt-os.linux.x86_32/dev_bundle/server-lib/node_modules/underscore/underscore.js:79:11)
W20150911-13:17:10.429(2)? (STDERR)     at /home/sanchezj/microscope/.meteor/local/build/programs/server/boot.js:117:5
=> Exited with code: 8
=> Your application is crashing. Waiting for file change.
我读了一些类似的问题和一些建议的解决方案,比如添加iron router包和一些类似的操作,但它不起作用


有什么想法吗?

看起来您创建了一个项目:

meteor create yourproject
cd yourproject
然后你在里面克隆了显微镜项目:

git clone https://github.com/DiscoverMeteor/Microscope.git
当您运行最初的meteor创建语句时,meteor为您创建了一个.meteor文件夹。此文件夹存储有关应用程序中使用的包的重要信息

如果查看克隆的显微镜代码,它已包含.meteor文件夹:

一般来说,在将meteor项目签入版本控制系统时,应该包括.meteor文件夹,以便可以轻松克隆和运行它,而无需确定应该安装哪些软件包

所以要正确运行显微镜,只需将其克隆到一个新目录中,而不是嵌套在现有meteor目录中,将cd插入该目录中,然后运行meteor

我见过一个偶然的项目,它没有.meteor文件夹就被签入了。在这些情况下,他们通常有一个自述文件,指示您使用meteor create yourproject启动自己的项目,并安装他们提供的meteor install package1 package2…的特定软件包列表


始终在回购协议中查找.meteor文件夹的存在。如果有,不要创建自己的项目。如果没有,请创建自己的代码并克隆到其中。

您的代码似乎有问题。然而,我们不能帮助,除非我们有。否则,我们只是盲目猜测。看起来你在运行显微镜。错误指向fixtures文件的第6行,该行是Meteor.users集合的插入。您是否删除了显微镜附带的帐户密码包?尝试meteor添加帐户密码,然后重新启动meteor。可能是加载顺序问题。目录结构中的集合定义在哪里?@MarkLeiber我正在运行显微镜是的。好我没有删除任何东西,因为我遵循教程。无论如何,我尝试运行您建议的代码,但出现了另一个错误,现在是:您的应用程序正在崩溃。正在等待文件更改/home/sanchezj/.meteor/packages/meteor tool/.1.1.4.st5tu4++os.linux.x86_32+web.browser+web.cordova/mt os.linux.x86_32/dev_bundle/server lib/node_modules/fibers/future.js:245 throwex;^Error:已定义名为“/posts/insert”的方法,因此当我使用此方法时,它正好位于dong git clone之后problem@corvid实际上我还没有定义它。