简体   繁体   English

凉亭寄存器错误ENOGIT git未安装或未在路径中

[英]bower register error ENOGIT git is not installed or not in the path

I am using bower register in the following way: 我通过以下方式使用Bower寄存器:

bower register example https://github.com/example/example.git

An error appears: 出现错误:

register error ENOGIT git is not installed or not in the path

I am using git and have installed gitbash , I can push and commit to my online repository (using tortoisegit) but I still receive this error when using bower (any commands) from command line. 我正在使用git并安装了gitbash ,我可以推送并提交到我的在线存储库(使用tortoisegit),但是从命令行使用bower(任何命令)时,我仍然收到此错误。

I am using Windows 8. Any idea how to fix it? 我正在使用Windows8。您知道如何解决它吗?

I was able to solve this issue using: 我能够使用以下方法解决此问题:

set PATH=%PATH%;C:\Program Files\Git\bin;

bower register example https://github.com/example/example.git

I hope can be useful to others. 希望对其他人有用。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM