3

我正在尝试创建新的流星+流星路由器项目。我安装了流星和陨石,然后:

$ meteor create myapp
$ cd myapp
$ mrt add router
$ meteor

我得到的是以下例外:

[[[[[ ~/dev/naorye/fbsignature/V1/linkit ]]]]]

No dependency info in bundle. Filesystem monitoring disabled.
=> Errors prevented startup:
Exception while bundling application:
Error: The package named router does not exist.
    at _.extend.initFromPackageDir (/Users/naorye/.meteor/tools/275efdf2db/tools/packages.js:155:13)
    at _.extend.initFromWarehouse (/Users/naorye/.meteor/tools/275efdf2db/tools/packages.js:197:10)
    at Object._.extend.get (/Users/naorye/.meteor/tools/275efdf2db/tools/packages.js:347:15)
    at self.api.use (/Users/naorye/.meteor/tools/275efdf2db/tools/bundler.js:111:28)
    at Array.forEach (native)
    at Function._.each._.forEach (/Users/naorye/.meteor/tools/275efdf2db/lib/node_modules/underscore/underscore.js:79:11)
    at Object.self.api.use (/Users/naorye/.meteor/tools/275efdf2db/tools/bundler.js:110:9)
    at _.extend.init_from_app_dir [as on_use_handler] (/Users/naorye/.meteor/tools/275efdf2db/tools/packages.js:238:11)
    at _.extend.use (/Users/naorye/.meteor/tools/275efdf2db/tools/bundler.js:450:11)
    at Object.exports.bundle (/Users/naorye/.meteor/tools/275efdf2db/tools/bundler.js:859:12)
    at /Users/naorye/.meteor/tools/275efdf2db/tools/run.js:694:26
    at exports.inFiber (/Users/naorye/.meteor/tools/275efdf2db/tools/fiber-helpers.js:24:12)

Please fix the problem and restart.

知道有什么问题吗?

4

1 回答 1

4

您需要启动您的应用程序,mrt而不是meteor(Meteoritemrt用作流星可以做的所有事情的外壳,除了它将包合并到您的应用程序中)

更新:在较新版本的 Meteorite 中,这不再适用。添加的软件包mrt add xxx应该与meteor.

于 2013-05-05T12:53:15.067 回答