How to : update fontawesome with bower

Dimitri Kopriwa picture Dimitri Kopriwa · Aug 27, 2014 · Viewed 25.1k times · Source

I can see on FontAwesome GitHub that a new version 4.2 has been release

I use bower 1.3.9 (latest), and my current version of font awesome is 4.1

When I type bower update fontawesome or bower update fontawesome#4.2 I can't get the 4.2.

Is there a way to update font awesome to 4.2 with bower ?

Into the bower.json of fontawesome bower components directory, I can see this git url git://github.com/FortAwesome/Font-Awesome.git which is slightly the same as https://github.com/FortAwesome/Font-Awesome.git where the latest version is available.

Any help would be appreciated

Answer

Dimitri Kopriwa picture Dimitri Kopriwa · Aug 27, 2014

I have edited my bower.json file and replaced the line:

"fontawesome": "~4.1.0",

with:

"fontawesome": "https://github.com/FortAwesome/Font-Awesome.git#~4.2.0"

Finally, I did bower install fontawesome --save.

It finally updated font awesome.

bower cached        https://github.com/FortAwesome/Font-Awesome.git#4.2.0
bower validate      4.2.0 against https://github.com/FortAwesome/Font-Awesome.git#~4.2.0
bower cached        git://github.com/FortAwesome/Font-Awesome.git#4.1.0
bower validate      4.1.0 against git://github.com/FortAwesome/Font-Awesome.git#*
bower new           version for git://github.com/FortAwesome/Font-Awesome.git#*
bower resolve       git://github.com/FortAwesome/Font-Awesome.git#*
bower download      https://github.com/FortAwesome/Font-Awesome/archive/v4.2.0.tar.gz
bower extract       fontawesome#* archive.tar.gz
bower resolved      git://github.com/FortAwesome/Font-Awesome.git#4.2.0
bower install       fontawesome#4.2.0

I have reopened my bower.json, my line has been replaced by:

"fontawesome": "~4.2.0",

Hope it helps.