Meteor更新到0.8.3打破app

Jea*_*eri 3 meteor meteorite

今天我将Meteor项目更新到0.8.3版

$> [master?] % mrt update
? normalize.css
    branch: https://github.com/rithis-archive/meteor-normalize.css.git#master
? Meteor.cron
    branch: https://github.com/alexsuslov/Meteor.cron.git#master
? iron-router
    tag: https://github.com/EventedMind/iron-router.git#v0.9.1
? mongodb-server-aggregation
    tag: https://github.com/zvictor/meteor-mongo-server.git#v1.0.3
? reactive-publish
    tag: https://github.com/Diggsey/meteor-reactive-publish.git#v0.1.6
? reststop2
    tag: https://github.com/Differential/reststop2.git#v0.6.0
? kadira
    tag: https://github.com/meteorhacks/kadira.git#v2.4.13
? subs-manager
    tag: https://github.com/meteorhacks/subs-manager.git#v1.0.2
? async
    tag: https://github.com/peerlibrary/meteor-async.git#v0.9.0-1
? npm
    tag: https://github.com/arunoda/meteor-npm.git#v0.2.6
? iron-layout
    tag: https://github.com/EventedMind/iron-layout.git#v0.2.0
? server-deps
    tag: https://github.com/Diggsey/meteor-server-deps.git#v0.1.2
? blaze-layout
    tag: https://github.com/EventedMind/blaze-layout.git#v0.2.5
? iron-core
    tag: https://github.com/EventedMind/iron-core.git#v0.2.0
? iron-dynamic-template
    tag: https://github.com/EventedMind/iron-dynamic-template.git#v0.2.1

Done installing smart packages
Run Code Online (Sandbox Code Playgroud)

现在,当我运行它时,$> mrt我得到以下输出:

Stand back while Meteorite does its thing

Done installing smart packages

Ok, everything's ready. Here comes Meteor!

[[[[[ ~/tmp/test ]]]]]

=> Started proxy.
=> Meteor 0.8.3 is available. Update this project with 'meteor update'.
=> Started MongoDB.     
iron-router: updating npm dependencies -- connect...
kadira: updating npm dependencies -- debug, usage...
=> Errors prevented startup:

While building package `iron-router`:
error: no such package: 'reactive-dict@1.0.0'
error: no such package: 'deps@1.0.0'
error: no such package: 'underscore@1.0.0'
error: no such package: 'ejson@1.0.0'
error: no such package: 'jquery@1.0.0'
error: no such package: 'ui@1.0.0'
error: no such package: 'iron'
error: no such package: 'cmather'
error: no such package: 'webapp@1.0.0'

=> Your application has errors. Waiting for file change.
Run Code Online (Sandbox Code Playgroud)

现在,当我这样做时meteor update,问题仍然存在 即使我先做meteor update,然后mrt update我最终得到相同的结果.有什么建议 ?

sai*_*unt 8

问题是运行mrt update已更新铁:路由器到最新版本(0.9.1),它只与流星0.9版本候选版本兼容(请参阅此处的说明:Windows 7 x64上的铁路由器(最新版本)的安装问题(Meteor) 0.8.3)).

您需要做的是将铁路由器降级到0.8.2,这与流星0.8.3兼容.

为此,您必须像这样修改您的smart.json:

{
  "packages": {
    "iron-router":{
      "version": "0.8.2"
    }
}
Run Code Online (Sandbox Code Playgroud)

然后通过删除smart.lock清理你的项目并运行mrt install以确保陨石已经解释了变化.

如果一切正常,项目包文件夹中符号链接的铁路由器版本应指向iron-router@0.8.2