Bower : ENOGIT git is not installed or not in the PATH
Posted Back to Reff.
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Bower : ENOGIT git is not installed or not in the PATH相关的知识,希望对你有一定的参考价值。
在用bower安装jquery库时报错,Bower : ENOGIT git is not installed or not in the PATH
因此下载安装git: https://git-for-windows.github.io/
安装完成后重新执行bower install jquery 仍然报错,原因是git没有设置在环境变量中。
解决方法一:
添加git到环境变量中,设置path路径为 C:\\Program Files\\Git\\bin(和设置java环境变量的操作类似,不再演示)
计算机右键——属性——(左侧)高级系统设置——环境变量——点击PATH,编辑——在末尾添加 ;C:\\Program Files\\Git\\bin
解决方法二:
在控制台输入如下命令:
set PATH=%PATH%;c:\\Program Files\\Git\\bin
再次运行
bower install jquery
以上是关于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’