我正在尝试在我的 angular-meteor 项目中使用第三方商业 JS 库供应商刚刚通知我,他们只支持 angular 版本 1.3.11
有没有办法用这个特定版本的 angular 安装 urigu:angular-meteor?
我正在尝试在我的 angular-meteor 项目中使用第三方商业 JS 库供应商刚刚通知我,他们只支持 angular 版本 1.3.11
有没有办法用这个特定版本的 angular 安装 urigu:angular-meteor?
根据流星文档,您可以设置一个版本,使用@=
它应该是这样的:
meteor add angularjs:angular@=1.3.11
但是,这样做您可能会遇到这样的版本冲突:
>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.
所以你有几个选择:
由于angular
成熟得多,angular-meteor
并且 1.3.11 到 1.3.15 不应该有重大更改,因此此选项具有明显的优势。
如果您确实希望使用第一个选项,请添加--allow-incompatible-update
到命令行。