Bower:enogit git isn't installed or not in the PATH

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.