我正在尝试创建新的meteor + meteor-router项目。 我安装了流星和陨石然后:
$ 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.
知道这是什么问题吗?
答案 0 :(得分:4)
你需要使用mrt
而不是meteor
启动你的应用(陨石使用mrt
作为流星可以做的所有内容的外壳,除了它将包合并到你的应用中)
更新:在较新版本的陨石中,这不再适用了。使用mrt add xxx
添加的软件包应与meteor
一起使用。