Bower Package Manager - Install, Update, and Manage Frontend Dependencies

Learn how to use Bower, a popular package manager for frontend web development. Discover commands for installing, updating, searching, and managing packages like jQuery, Bootstrap, and more.

Bower Package Management Commands

Bower is a popular package manager for the front-end. It helps automate the process of installing and updating front-end packages like JavaScript, CSS, and HTML. Below are common commands for managing your project's dependencies with Bower.

Install Frontend Packages with Bower

Use the bower install command to add packages to your project. You can install specific packages, packages from GitHub repositories, or even specific versions.

# To install a package:
bower install <package>

# To install a package from github:
bower install <user>/<repo>

# To install a specific package locally:
bower install <package>#<version>

# To install a package locally and save installed package into bower.json:
bower install <package> --save

Manage and Update Bower Packages

Bower provides commands to retrieve information about packages, list installed dependencies, and update them to the latest versions.

# To retrieve info of a particular package:
bower info <package>

# To list local packages:
bower list

# To search for a package by name:
bower search <package>

# To update a package to their newest version:
bower update <package>

Remove Packages

When you no longer need a package, Bower offers a straightforward way to remove it from your project.

# To remove a local package:
bower uninstall <package>

External Resources for Bower