几乎整理应用程序,它开始崩溃

时间:2015-04-28 21:29:22

标签: node.js mongodb meteor

我的应用程序运行正常,直到我安装了accounts-facebook和service-configuration软件包。现在它给出了这个错误,我完全不知道如何解决它:

/Users/###/.meteor/packages/meteor-tool/.1.1.3.1eul34x++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/server-lib/node_modules/fibers/future.js:245
                    throw(ex);
                          ^
Error: Can't find npm module 'mongodb'. Did you forget to call 'Npm.depends' in package.js within the 'cfs_gridfs' package?
at Object.Npm.require (/Users/###/proyectos/leads/.meteor/local/build/programs/server/boot.js:155:17)
at Package (packages/cfs:gridfs/gridfs.server.js:2:1)
at /Users/###/proyectos/leads/.meteor/local/build/programs/server/packages/cfs_gridfs.js:189:4
at /Users/###/proyectos/leads/.meteor/local/build/programs/server/packages/cfs_gridfs.js:196:3
at /Users/###/proyectos/leads/.meteor/local/build/programs/server/boot.js:222:10
at Array.forEach (native)
at Function._.each._.forEach (/Users/###/.meteor/packages/meteor-tool/.1.1.3.1eul34x++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/server-lib/node_modules/underscore/underscore.js:79:11)
at /Users/###/proyectos/leads/.meteor/local/build/programs/server/boot.js:117:5
Exited with code: 8
Your application is crashing. Waiting for file change.

3 个答案:

答案 0 :(得分:2)

对我有用的只是点击" Control + C"停止我的应用程序,然后运行" meteor run"试。

答案 1 :(得分:0)

你有 cfs_gridfs 包吗?

您的控制台在错误中引用该包

答案 2 :(得分:0)

如果您正在使用mrt,则表示您正在使用旧版本的Meteor。有一段时间我有类似的问题,我只想编辑文件.meteor/packages,当我运行meteor命令时问题就解决了。我不确定这里是否适用。