Bower: ENOGIT Git is not installed or not in the PATH

后端 未结 16 1374
时光说笑
时光说笑 2020-11-29 14:52

Git is installed and is in the path.

Platform: Red Hat Enterprise Linux 5.8.

>which git
/usr/local/bin/git

Yet bower can\'t find

相关标签:
16条回答
  • 2020-11-29 15:33

    Make sure you installed Git with the second or third option selected from the list. It will penetrate the Git command to cmd by modifying PATH automatically ;)

    Enter image description here

    0 讨论(0)
  • 2020-11-29 15:34

    When you ran the git install, you probably didn't choose:

    "Use Git from the Windows Command Prompts"

    during the installation.

    Re-run git install, and choose that option.

    0 讨论(0)
  • 2020-11-29 15:34

    In Linux:

    if you dont have installed git use:

    sudo apt-get update
    sudo apt-get install git
    

    with command which git you will know the directory where is and then add in path if it is not in that enviroment variable.

    0 讨论(0)
  • 2020-11-29 15:40

    Just use the Git Bash instead of cmd.

    0 讨论(0)
  • 2020-11-29 15:40

    Run the following command at your node.js command prompt where "<git path>" is the path to your git bin folder:

    set PATH=%PATH%;<git path>;
    

    So, like this:

    set PATH=%PATH%;C:\Program Files\Git\bin;
    

    Or this: (Notice the (x86) )

    set PATH=%PATH%;C:\Program Files (x86)\Git\bin;
    

    This will add git to your path variables. Be sure you type it correctly or you could possibly delete your path vars which would be bad.

    0 讨论(0)
  • 2020-11-29 15:44

    I solved the problem by install Git Bash from Download Git Bash.

    Setting this option 3 when installing the software as shown bellow.

    Finally select the project folder by right click using Bash as shown below.

    and type

    npm install

    . It works for me.

    0 讨论(0)
提交回复
热议问题