Installing Polymer through bower freezes

2019-06-22 11:15发布

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

2条回答
叼着烟拽天下
2楼-- · 2019-06-22 11:50

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.

查看更多
可以哭但决不认输i
3楼-- · 2019-06-22 11:51

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

查看更多
登录 后发表回答