无法找到合适的聚合物版本

时间:2014-05-18 23:23:04

标签: bower polymer

我正在安装和配置Polymer,我得到了这个:

Unable to find a suitable version for polymer, please choose one:
    1) polymer#master which resolved to ced408df76 and is required by core-component-page#a431519835, highlightjs-element#a2c5fc08d0, marked-element#761922b4a2 
    2) polymer#0.2.4 which resolved to 0.2.4 and is required by core-ajax#0.2.4, core-bind#0.2.4, core-collapse#0.2.4, core-doc-viewer#0.2.4, core-elements#0.2.4, core-firebase#0.2.4, core-icon#0.2.4, core-icons#0.2.4, core-iconset#0.2.4, core-iconset-svg#0.2.4, core-input#0.2.4, core-layout#0.2.4, core-layout-grid#0.2.4, core-layout-trbl#0.2.4, core-list#0.2.4, core-localstorage#0.2.4, core-media-query#0.2.4, core-menu-button#0.2.4, core-meta#0.2.4, core-overlay#0.2.4, core-range#0.2.4, core-selection#0.2.4, core-selector#0.2.4, core-theme-aware#0.2.4, core-tooltip#0.2.4, core-transition#0.2.4 
    3) polymer#~0.2.4 which resolved to 0.2.4 and is required by project

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

我还在学习,我不知道应该选择哪一个以及为什么会出现这个问题。任何人都可以解释这个树的选择吗? 感谢..

1 个答案:

答案 0 :(得分:0)

  

安装Polymer 0.2.4的推荐方法是通过Bower。我们已经   选择Bower是因为它消除了依赖管理的麻烦   在开发或消费元素时。

来自http://www.polymer-project.org/docs/start/getting-the-code.html

我和

一起去
  2)聚合物#0.2.4,其分解为0.2.4并且是必需的   ...

之所以发生这种情况,是因为当凉亭去安装聚合物版本时,它提供了三种选择,并且不知道哪一种可供选择。许多软件包都有稳定的版本和开发版本,您可以自己决定。您通常可以检查github或网站上的软件包,找出最适合您的软件包