答案 0 :(得分:0)
请在此处分享您的bower.json文件。但是,如果你觉得你的bower.json文件是清楚的。然后删除bower_compenents目录,然后在CLI>凉亭更新。这将清楚地更新/重新安装您的依赖项。如果您使用聚合物#^ 2.0(超过2.0版本),那么考虑^ 2.0的依赖性也可以与2.0以下版本的聚合物兼容。
与聚合物1.1.0兼容的铁形元素,这意味着:当您尝试安装时:
bower install --save PolymerElements/iron-form
您将面临:
Unable to find a suitable version for polymer, please choose one by typing one of the numbers below:
1) polymer#^1.1.0 which resolved to 1.9.2 and is required by iron-form#1.1.5
2) polymer#^1.5.0 which resolved to 1.9.2 and is required by iron-ajax#1.4.4
3) polymer#^1.0.0 which resolved to 1.9.2 and is required by promise-polyfill#1.0.1
4) polymer#^2.0.0-rc.3 which resolved to 2.0.1 and is required by app-layout#1233b73c35, polymer-starter-kit
(这只是一个例子。)您应该选择目前的聚合物版本,因为它是4并且与先前的版本兼容。
如果您分享了更多信息,我会尝试在需要时添加更多信息。