简体   繁体   English

Polymer 2.0中的纸张工具栏

[英]Paper-toolbar in Polymer 2.0

When I install paper-toolbar when using Polymer 2.0 I always get this in the PolymerCLI 当我在使用Polymer 2.0时安装纸张工具栏时,我总是在PolymerCLI中得到它

Unable to find a suitable version for polymer, please choose one by typing one of the numbers below:
1) polymer#^1.2.0 which resolved to 1.8.1 and is required by paper-toolbar#1.1.7
2) polymer#^1.1.0 which resolved to 1.8.1 and is required by iron-flex-layout#1.3.2
3) polymer#^1.0.0 which resolved to 1.8.1 and is required by paper-styles#1.2.0
4) polymer#^2.0.0-rc.2 which resolved to 2.0.0-rc.2 and is required by Pokedex
5) polymer#^2.0.0-rc.1 which resolved to 2.0.0-rc.2 and is required by iron-component-page#9bcd9558d7

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


? Answer

这是因为在安装某些Polymer Element时必须指定版本:

bower install --save PolymerElements/paper-button#2.0-preview

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM