Bower:ENOGIT Git未安装或未安装在PATH中 [英] Bower: ENOGIT Git is not installed or not in the PATH

查看:418
本文介绍了Bower:ENOGIT Git未安装或未安装在PATH中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



平台:


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 it:

bower angular#1.0.6  ENOGIT git is not installed or not in the PATH

What is the recommended work-around?

解决方案

Adding Git to Windows 7/8/8.1 Path

Note: You must have msysgit installed on your machine. Also, the path to my Git installation is "C:\Program Files (x86)\Git". Yours might be different. Please check where yours is before continuing.

Open the Windows Environment Variables/Path Window.

  1. Right-click on My Computer -> Properties
  2. Click Advanced System Settings link from the left side column
  3. Click Environment Variables in the bottom of the window
  4. Then under System Variables look for the path variable and click edit
  5. Add the pwd to Git's binary and cmd at the end of the string like this:

    ;%PROGRAMFILES(x86)%\Git\bin;%PROGRAMFILES(x86)%\Git\cmd
    

Now test it out in PowerShell. Type git and see if it recognizes the command.

Source: Adding Git to Windows 7 Path

这篇关于Bower:ENOGIT Git未安装或未安装在PATH中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆