how to request angular version that is lower than default with angular-meteor

佐手、 提交于 2019-12-12 02:58:49

问题


I'm trying to use a third party commercial JS library in my angular-meteor project The vendor just informed me, that they only support angular version 1.3.11

Is there a way to install urigu:angular-meteor with this specific version of angular?


回答1:


According to the meteor documentation you can set a version using @= so it should be like that:

meteor add angularjs:angular@=1.3.11

However, doing so you might have versions conflict like that:

>meteor add angularjs:angular@=1.3.11
 => Errors while adding packages:

While selecting package versions:
error: Potentially incompatible change required to top-level dependency: urigo:angular 0.6.8, was 0.8.4.
Constraints on package "urigo:angular":

To allow potentially incompatible changes to top-level dependencies, you must pass --allow-incompatible-update on the command line.

So you have here few alternatives:

  • Downgrade urigo:angular: I think this is not a good option, there might be major changes since the package is pretty new.
  • Convince the vendor to "take the risk"

Since angular is much more mature that angular-meteor and 1.3.11 to 1.3.15 should not have breaking changes, this option have a clear advantage.

If you do wish to use the first option, add --allow-incompatible-update to the command line.



来源:https://stackoverflow.com/questions/30757451/how-to-request-angular-version-that-is-lower-than-default-with-angular-meteor

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!