Meteor更新到0.8.3打破app

时间:2014-08-19 12:45:57

标签: 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

现在当我运行$> 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.

现在当我meteor update时,问题仍然存在。即使我先做meteor update然后再mrt update,我也会得到相同的结果。有什么建议吗?

1 个答案:

答案 0 :(得分:8)

问题是运行mrt update已将iron:router更新为最新版本(0.9.1),该版本仅与流星0.9版本候选版本兼容(请参阅此处的说明:Installation issues with iron-router (newest) on Windows 7 x64 (Meteor 0.8.3))。

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

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

{
  "packages": {
    "iron-router":{
      "version": "0.8.2"
    }
}

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

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