2015-06-10 57 views
0

我想在我的角流星項目中使用第三方商業JS庫 供應商剛剛告訴我,他們只支持角度版本1.3。 11如何請求角度流星低於默認值的角度版本

有沒有辦法安裝urigu:angular-meteor與這個特定版本的角?

+0

當我將文件重命名爲只是普通的index.html我開始獲取流星錯誤:「在html模板中格式不正確」,流星將不會構建應用程序 –

+0

你是指這個答案http://stackoverflow.com/questions/30747253 /如何正確配置 - 角流星 - 有內容顯示在頁/ 30753125#30753125?嘗試從那裏包括.ng.html文件(使用ui路由器),並在那裏使用angular和流星指令 – oshai

回答

2

根據documentation您可以設置使用@=版本流星所以它應該是這樣的:

meteor add angularjs:[email protected]=1.3.11 

但是,這樣做,你可能有版本衝突這樣的:

>meteor add angularjs:[email protected]=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是更加成熟的是angular-meteor和1.3.11到1.3.15應該不會有重大更改,此選項都具有明顯優勢。

如果您希望使用第一個選項,請將--allow-incompatible-update添加到命令行。