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

时间:14-12-11 栏目:开发工具 作者:zongyan86 评论:0 点击: 5,637 次

当我在cmd窗口中用下边命令时:

C:\> bower install jquery

出现 Bower : ENOGIT git is not installed or not in the PATH错误,则需要配置你的Git到path,具体如下

方法一:假如你的git安装目录是"C:\Program Files (x86)\Git",在path中加入git的bin和cmd目录,如C:\Program Files (x86)\Git\bin;C:\Program Files (x86)\Git\cmd

方法二:使用Git Bash来代替cmd

 

备注: 如果方法一不起作用是因为,你修改的path没有生效, 你需要重新启动电脑。



声明: 本文由( zongyan86 )原创编译,转载请保留链接: Bower : ENOGIT git is not installed or not in the PATH

关注我们