Search code examples
npmbowerbower-install

Problems updating bower to the latest version


I am using bower

$ bower -v
0.9.2

latest version of bower is 1.x.x https://github.com/bower/bower/releases

I run to update bower to the latest version

npm update -g bower 

this does not help

I still have

$ bower -v
0.9.2

Solution

  • 1) you have to clear npm cache and then update bower

    sudo npm cache clean
    npm update -g bower
    

    2) If 1st solution does not help

    try to remove and install it again

    npm -g uninstall bower
    npm -g install bower
    

    check if it is still here

    which bower
    

    if it will show you something like

    /usr/local/bin/bower
    

    then

    rm <path from previous command>
    

    and after install it again

    npm -g install bower
    

    open new bash window and enjoy latest version of bower

    same will help with other packages