Updating package with Bower

bsr picture bsr · May 3, 2013 · Viewed 51.1k times · Source

I am trying to update angular 1.0.5 to 1.0.6. I use Yeoman, and when try to update it is installing 1.0.5. I cleared the cache (removed everything from ~/.bower), still get the below log. I checked the repo, and it has 1.0.6. Is there a way I can make it update to 1.0.6.

bower update angular
bower cloning git://github.com/angular/bower-angular.git
..
bower installing angular#v1.0.5

bower info angular
angular 

  Versions:
    - v1.0.6
    - v1.0.5
    - v1.0.4
    - v1.0.3

$ bower --version
0.8.5

 yo --version
1.0.0-beta.3

Answer

Sindre Sorhus picture Sindre Sorhus · May 3, 2013

You have to upgrade to latest version of Bower: npm update -g bower

bower-angular 1.0.6 switched from component.json to bower.json which is only supported in Bower >=0.9.0