A package manager for the web
The developer of this repository has not created any items for sale yet. Need a bug fixed? Help with integration? A different license? Create a request here:
Bower offers a generic, unopinionated solution to the problem of front-end package management, while exposing the package dependency model via an API that can be consumed by a more opinionated build stack. There are no system wide dependencies, no dependencies are shared between different apps, and the dependency tree is flat.
Bower runs over Git, and is package-agnostic. A packaged component can be made up of any type of asset, and use any type of transport (e.g., AMD, CommonJS, etc.).
View complete docs on bower.io
$ npm install -g bower
See complete command line reference at bower.io/docs/api/
# install dependencies listed in bower.json $ bower install # install a package and add it to bower.json $ bower install <package> --save # install specific version of a package and add it to bower.json $ bower install <package>#<version> --save </version></package></package>
We discourage using bower components statically for performance and security reasons (if component has an
file that is not ignored, that can be easily exploited to do malicious stuff).
To uninstall a locally installed package:
$ bower uninstall <package-name> </package-name>
, do not forget to
alias bower='noglob bower'
bower install jquery\#1.9.1
Bower is a user command; there is no need to execute it with superuser permissions.
To use Bower on Windows, you must installGit for Windows correctly. Be sure to check the options shown below:
Note that if you use TortoiseGit and if Bower keeps asking for your SSH password, you should add the following environment variable:
GIT\_SSH - C:\Program Files\TortoiseGit\bin\TortoisePlink.exe
. Adjust the
path if needed.
To use Bower on Ubuntu, you might need to link
sudo ln -s /usr/bin/nodejs /usr/bin/node
Bower can be configured using JSON in a
file. Read over available options at bower.io/docs/config.
You can ask questions on following channels in order:
Note that on Windows for tests to pass you need to configure Git before cloning:
git config --global core.autocrlf input
Support us with a monthly donation and help us continue our activities. [Become a backer]
Become a sponsor and get your logo on our README on Github with a link to your site. [Become a sponsor]
Copyright (c) 2012-present Twitter and other contributors
Licensed under the MIT License