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

Posted 马会东的博客

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Bower : ENOGIT git is not installed or not in the PATH相关的知识,希望对你有一定的参考价值。

 

http://www.haorooms.com/post/bower_error

 

第一次使用bower,结果在安装bootstrap时遇到这个问题:

 
$ bower install bootstrap 
bower ENOGIT git is not installed or not in the PATH

按照提示我先安装了git fo window.
安装时记得要勾选 Use Git from the windows Command prompt
完成后,再次运行,问题依然存在。

于是又注意到“or not in the PAHT”

$ PATH

添加git路径(我的是默认安装路径,根据自己的机器情况 更改路径即可)

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

再次运行

$ bower install bootstrap  
...

 

 

以上是关于Bower : ENOGIT git is not installed or not in the PATH的主要内容,如果未能解决你的问题,请参考以下文章

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

git更新失败Probably the path to Git executable is not valid

ERROR: Repository not found. ////Git, but is not registered in the Settings.

gitgit: ‘interpret-trailers’ is not a git command. See ‘git --help’

gitgit: ‘interpret-trailers’ is not a git command. See ‘git --help’

gitgit: ‘interpret-trailers’ is not a git command. See ‘git --help’