Bower not updating via npm -g bower update

When I just installed bootstrap-css with bower install , I got this message to update bower from 1.2.8 to 1.3.1

 $ bower install bootstrap-css ----------------------------------------- Update available: 1.3.1 (current: 1.2.8) Run npm update -g bower to update ----------------------------------------- 

So, I ran it, and that's what happened

 $ npm update -g bower npm http GET https://registry.npmjs.org/bower npm http 304 https://registry.npmjs.org/bower $ bower --version 1.2.8 

I'm still at 1.2.8 . Why is bower not updating?

+6
source share
4 answers

You need to update the subwoofer with the folling command:

 npm install -g bower@latest 
+14
source

You can use this command

 npm update bower -g 
+2
source

Interestingly, the npm -g bower update updated my conversation to the latest, but when I checked the version with bower -version, it showed me the old version. I removed the old package from .npm / bower / and then found out the new version!

0
source

If someone has this problem on Windows and Visual Studio 2015 is installed, you need to go to C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\Extensions\Microsoft\Web Tools\External and rename bower.cmd at bower.cmdBAK .

Before doing this, starting bower --version always returned 1.3.9 for me when I knew that from npm ls -g | grep bower npm ls -g | grep bower i was in 1.6.5 globally.

0
source

All Articles