Global Installation Bower
Install -G bower
Detection success
$ bower Help
Install under Project root (latest version), will automatically generate a bower_components folder (if you make a bug under CMD, modify the environment variable, or use Git bash)
Install jquery
List installed Packages
$ Bower List
Search Packages
$ Bower Search <package name>
View package Information
Info <package name>
bower initto create a Bower.json file by using a command
$ bower Init
Generate the following JSON
{ "name":"Mynode", "Description":"", "Main":"", "authors": [ "Zcynine" ], "License":"MIT", "Homepage":"", "Ignore": [ "**/.*", "Node_modules", "bower_components", "Test", "tests" ], "Dependencies": { "jquery":"^2.2.4", "Bootstrap":"^3.3.6" }}
================ the bug============== that appears when using CMD with bower install
Bower:enogit git isn't installed or not in the PATH
Workaround One:
Add git to the environment variable in window. Set the path path to C:\Program Files\git\bin
Workaround Two:
$ set path=%path%; C:\Program Files\git\bin
After Setup, you need to restart your computer for the variable to take effect.
Bower:enogit git isn't installed or not in the PATH