nodejs bower learning


If you are familiar with Java, Bower is a .m2 repository similar to the now popular Maven build system.


1. Install bower


1. Install the latest version of node.js

2. Install git (and then configure the path)

Use powerShell (similar to cmd) to execute the following command

$ npm install -g bower



2. Configure the download directory


Add a .bowerrc file to the current directory of cmd with the following content:

  "directory" : "js/lib"


Specifies the directory where bower downloads the code



3. Common commands


Generate a bower.json file

bower init



download jquery

bower install jquery



View jquery information in bower.json

bower info jquery



package update

bower update jquery



Query plugins that contain bootstrap strings

bower search bootstrap



uninstall package

bower uninstall jquery




Guess you like