Bower works by fetching and installing packages from all over, taking care of hunting, finding, downloading, and saving the stuff you’re looking for. Bower keeps track of these packages in a manifest file, bower.json. How you use packages is up to you. Bower provides hooks to facilitate using packages in your tools and workflows.
Bower requires Node and npm and Git.
Search Bower packages (http://bower.io/search) - search for common package names and dependencies.
- Install Node JS from http://nodejs.org/
- Add NodeJs to Windows PATH environment variable PATH=C:\Program Files\nodejs\ Restart Windows for IntelliJ to pick this up.
- Bower is a command line utility. Install it with npm. globally
npm install -g bower
- Add Git Bash to Windows PATH environment variable PATH=C:\Program Files (x86)\Git\bin; Restart IntelliJ to pick this up.
- Install packages with bower install. Bower installs packages to bower_components/. i.e bower install bootstrap
bower install <package>
- Save your packages to bower.json with
Dependency packages are installed into your Windows account profile i.e;
D:\WorkspacePearsonBtecSpecs\spring-mvc-angularjs-sample-app-master>npm install -g bower C:\Users\dawud\AppData\Roaming\npm\bower -> C:\Users\dawud\AppData\Roaming\npm\node_modules\bower\bin\bower firstname.lastname@example.org C:\Users\dawud\AppData\Roaming\npm\node_modules\bower