简体   繁体   中英

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

I am using bower register in the following way:

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.

I am using Windows 8. Any idea how to fix it?

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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