gpt4 book ai didi

Meteor 更新至 0.8.3 破坏了应用程序

转载 作者:行者123 更新时间:2023-12-02 08:34:34 24 4
gpt4 key购买 nike

今天我将 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 我最终也会得到相同的结果。有什么建议吗?

最佳答案

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

您需要做的是将iron-router降级到与meteor 0.8.3兼容的0.8.2。

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

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

然后通过删除 smart.lock 来清理您的项目并运行 mrt install 以确保陨石已解释了更改。

如果一切正常,项目包文件夹中符号链接(symbolic link)的iron-router版本应指向iron-router@0.8.2

关于Meteor 更新至 0.8.3 破坏了应用程序,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25383794/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com