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

第一次使用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  
...

评论

暂无评论