On Gitbash - Bower : ENOGIT git is not installed or not in the PATH

半世苍凉 提交于 2019-12-06 04:04:50
Felipe González

Check this solution posted by saurabhkohli in this GitHub issue:

[U]pdating the PATH environment variable with the current installed location of the GIT in your system will help resolve this issue, or you can update the same in your NodeJS command prompt by using "set PATH=%PATH%;C:\Program Files\Git\bin;"

Marco Leite

I just hit the same issue when trying to use windows command line. Turns out, you have to select this setting twice and I have missed the second one.

Here's a few screenshots if any help for anyone:

The one I have missed:

After reinstalling with the above settings, everything seem to be ok.

Try to unzip a portable Git in a simpler path (no space).
Take the latest one from git for Windows: PortableGit-2.4.5.1-4th-release-candidate-64-bit.7z.exe.
(no setup required, just an auto-extractable archive here)

Remove from your PATH the old msysgit, and add C:\path\to\PortableGit-2.4.5.1-4th-release-candidate-64-bit\bin to the %PATH%.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!