bower: Update command: not working at all
Environment:
Mac OS 10.9.1, Bower 1.2.8, Node 0.10.20
Steps to reproduce:
- Create a new folder on the desktop.
- Open terminal and
cdto your new folder. - Run this command:
bower install jquery#2.0.1 - Run
bower listand verify that jQuery 2.0.1 is installed. - Run
bower update - Run
bower listand find that jQuery 2.0.1 is still installed and that Bower reports 2.0.3 as the latest available version.
Expected Results:
After running bower update, jQuery 2.0.1 should be replaced with jQuery 2.0.3.
Actual Results:
jQuery is not updated to the latest version available.
Extra information:
- Adding
--forceand/or--force-latesthas no effect. - The presence of a bower.json file in the project’s root folder has no effect.
- Note that I’m using jQuery as an example — the same issue manifests for all packages I attempt to update.
- I have some old projects lying around that have older versions of various libraries (jQuery, Foundation, etc) that were installed using Bower, but were installed without a specific target hashtag. That is, I did:
bower install jQueryto get the latest version available at that time. These projects also fail to update if I runbower updateon them.
Other
I’m not an expert with bower, but according to every tutorial I can find online, the above process should automatically update my installed components to the latest available versions. Apologies in advance if the reason for the failure is a misunderstanding on my part.
About this issue
- Original URL
- State: closed
- Created 10 years ago
- Comments: 25 (6 by maintainers)
Could @bdkjones please add the solution at the top? I had to read through all of the messages to find the fix (just running a
bower install XXXto update the package to the last version).