我将Meteor项目更新为1.6.1,不再支持Meteor.uuid()。包artwells:accounts-guest需要它,用户baursn已提交a merge of a pull request,将Meteor.uuid()的用户更新为Random.id()。
Artwells尚未更新main package,因此我想使用baursn的版本。怎么样?
答案 0 :(得分:0)
@Mikkel在上面的评论中指出了我正确的方向。
我在项目中添加了/ packages。我下载了baursn's package并将其解压缩,然后将其放入新的/ packages文件夹中。在该软件包的package.js中,版本号已设置为高于the same package by Artwells的版本号。
然后,meteor list
和meteor
都导致以下错误:
=> Errors while initializing project:
While selecting package versions:
error: Potentially incompatible change required to top-level dependency: kadira:flow-router 2.7.0, was 2.12.1.
Constraints on package "kadira:flow-router":
* kadira:flow-router@=2.7.0 || =2.6.2 || =2.4.0 || =2.3.0 || =2.2.0 <- brettle:accounts-patch-ui 0.1.3 <- artwells:accounts-guest 0.1.13
To allow potentially incompatible changes to top-level dependencies, you must pass --allow-incompatible-update on the command line.
运行meteor --allow-incompatible-update确实解决了这个问题,添加了一些软件包并降级了kadira:flow-router。不理想,但它让我的项目再次运作。
之后,我运行了meteor update
,然后只是meteor
。