2014-07-08 131 views
0

我安裝the Google Sheets web component合適的版本,並粘貼後:無法找到平臺

bower install GoogleWebComponents/google-sheets [--save] 

它說,它不承認[--save],所以我打

bower install GoogleWebComponents/google-sheets 

現在它的問:

Unable to find a suitable version for platform, please choose one: 
    1) platform#master which resolved to 1ea9f88521 and is required by core-comp 
onent-page#9653654a2e, polymer#a16a41c923 
    2) platform#>=0.3.0 <1.0.0 which resolved to 0.3.3 and is required by core-c 
omponent-page#0.3.3, polymer#0.3.3, polymer#0.3.3 

Prefix the choice with ! to persist it to bower.json 


[?] Answer: 

所以現在我的問題是:我該怎麼辦?

+0

我想我可以鍵入感嘆號1 –

回答

1

所以首先,你必須把--save放在bower包的參數列表之前。將--save放到最後,bower會嘗試將其解析爲bower包(這就是爲什麼找不到它的原因)。

它要求您選擇版本的原因是因爲您的bower包與指定的依賴關係版本,而另一個依賴包與依賴包具有相同的包,但版本不同。鮑爾不能決定你想安裝哪個版本的platform。我認爲在這種情況下選擇「穩定」版本是有意義的,因爲master可能會被破壞,這是0.3.3

2

只需選擇您之前的選擇!

例如: -

?答:4

O/P: 涼亭聚合物分辨率保存聚合物#〜0.5.1的分辨率

相關問題