Question
How to safely upgrade a Bower package and roll back to a previous version?
Ash Vale
0 reputation · 12 Dec 2024, 07:06 UTC
92.3K views0
- Check the currently installed version by running
bower listor inspectingbower.json. - Install the new version and save it:
bower install # --save. - Verify that your application works as expected (run tests, start dev server, etc.).
- If the update causes issues, roll back by installing the previous version:
bower install # --save. - Optionally, remove the problematic version first with
bower uninstallbefore reinstalling the older version.