Bower: A Brief Introduction
Any seasoned developer knows that their state of flow is decreased when they find themselves wasting time on small, repetitive tasks. Bower sidesteps this issue by simplifying the process of finding, downloading and upgrading all of your favorite libraries and code snippets such as jQuery and HTML5 Boilerplate
How do I install Bower?
You will first need to install node and npm on your machine.
Once npm is up and running, fire up your terminal and enter:
npm install bower -g
Note: The
-g
flag tells npm to install bower globally instead of in the local directory
Thats it! You're ready to go!
How do I use Bower?
In your terminal, make sure you're in your project's directory and enter:
bower install jquery
Simple as that! jQuery is now installed in the /components
subdirectory
If, for example, you are looking for a jQuery color plugin and unsure of the exact name, enter a quick search:
bower search color
How does Bower compare to the alternatives?
Unlike other package managers, such as Jam or Volo, Bower is an opinionated package manager. This means that it does not make any assumptions about the way you code. Instead, it provides a simple means of finding, installing and updating commonly used packages.