如何将 git 中的包添加到我的 Meteor 项目
How to add packages from git to my Meteor project
我将 Meteor 项目更新为 1.6.1,不再支持 Meteor.uuid()。 artwells:accounts-guest 包需要它和用户 baursn has submitted a merge of a pull request 将 Meteor.uuid() 的用户更新为 Random.id()。
Artwells is yet to update the main package,所以我想用baursn的版本。怎么样?
@Mikkel,在上面的评论中,为我指出了正确的方向。
我在我的项目中添加了/packages。我下载了 baursn's package and, unzipped it, then put it in the new /packages folder. In that package's package.js, the version number was already set to something higher than for 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
。
我将 Meteor 项目更新为 1.6.1,不再支持 Meteor.uuid()。 artwells:accounts-guest 包需要它和用户 baursn has submitted a merge of a pull request 将 Meteor.uuid() 的用户更新为 Random.id()。
Artwells is yet to update the main package,所以我想用baursn的版本。怎么样?
@Mikkel,在上面的评论中,为我指出了正确的方向。
我在我的项目中添加了/packages。我下载了 baursn's package and, unzipped it, then put it in the new /packages folder. In that package's package.js, the version number was already set to something higher than for 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
。