您的位置:首页 > 其它

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

2016-10-21 11:37 519 查看
http://www.haorooms.com/post/bower_error

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

$bowerinstallbootstrap
bowerENOGITgitisnotinstalledornotinthePATH

按照提示我先安装了gitfowindow.
安装时记得要勾选UseGitfromthewindowsCommandprompt
完成后,再次运行,问题依然存在。

于是又注意到“ornotinthePAHT”

$PATH

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

$setPATH=%PATH%;C:\ProgramFiles\Git\bin

再次运行

$bowerinstallbootstrap
...



setPATH=%PATH%;C:\ProgramFiles(x86)\Git\bin
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: