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 FilesGitin

再次运行

$ bower install bootstrap  
...

 

 
set PATH=%PATH%;C:Program Files (x86)Gitin
原文地址:https://www.cnblogs.com/duanweishi/p/5984022.html