Installing Polymer through bower freezes

别说谁变了你拦得住时间么 提交于 2019-12-10 15:07:50

问题


I follow the instructions of the official page to install bower, but when I reach to the command line:

bower install --save Polymer/core-elements

bower get stuck and outputs nothing for a long while, in the end I get a "out of memory" error. What is wrong?

I am using Ubuntu 14.04


回答1:


There's a cyclical issue with Bower that's been fixed on master but hasn't made it to a release yet. https://github.com/bower/bower/issues/1169




回答2:


according to http://github.com/bower/bower/issues/1324 there is a workaround.

edit bower.json by adding in a line so the dependency area looks like this

dependencies": {
    "polymer": "Polymer/polymer#~0.3.1", 
    "core-elements": "Polymer/core-elements"
  }

then run $ bower update

you can add other packages, too.

I'm actually brand new to polymer (had trouble installing it, as you can imagine) so I'm not positive this works.



来源:https://stackoverflow.com/questions/23933626/installing-polymer-through-bower-freezes

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!