如何使用 angular-meteor 请求低于默认值的 angular 版本
how to request angular version that is lower than default with angular-meteor
我正在尝试在我的 angular-meteor 项目中使用第三方商业 JS 库
供应商刚刚通知我,他们只支持 angular 版本 1.3.11
有没有办法用这个特定版本的 angular 安装 urigu:angular-meteor?
根据 meteor documentation 你可以使用 @=
设置一个版本所以它应该是这样的:
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.
所以你有几个选择:
- 降级urigo:angular:我认为这不是一个好的选择,因为软件包很新,可能会有重大变化。
- 说服供应商"take the risk"
由于 angular
比 angular-meteor
成熟得多,而且 1.3.11 到 1.3.15 不应该有重大变化,所以这个选项有明显的优势。
如果您确实希望使用第一个选项,请将 --allow-incompatible-update
添加到命令行。
我正在尝试在我的 angular-meteor 项目中使用第三方商业 JS 库 供应商刚刚通知我,他们只支持 angular 版本 1.3.11
有没有办法用这个特定版本的 angular 安装 urigu:angular-meteor?
根据 meteor documentation 你可以使用 @=
设置一个版本所以它应该是这样的:
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.
所以你有几个选择:
- 降级urigo:angular:我认为这不是一个好的选择,因为软件包很新,可能会有重大变化。
- 说服供应商"take the risk"
由于 angular
比 angular-meteor
成熟得多,而且 1.3.11 到 1.3.15 不应该有重大变化,所以这个选项有明显的优势。
如果您确实希望使用第一个选项,请将 --allow-incompatible-update
添加到命令行。