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

Viewed 355782

Git is installed and is in the path.

Platform: Red Hat Enterprise Linux 5.8.

>which git
/usr/local/bin/git

Yet bower can't find it:

bower angular#1.0.6  ENOGIT git is not installed or not in the PATH

What is the recommended work-around?

18 Answers

1.Set the Path of Git in environment variables. 2.From Windows command prompt, run cd Project\folder\Path\ run the command: bower install

People above already gave solutions for your proplem, I hope so. If someone is facing this issue in 2022 in using docker images, then you should add a command to install git in your image.

For Example you are using alpine image in your Dockerfile. Then it will be something like this :


FROM node:8.3-alpine

# ....... other stuffs .....

RUN apk add git


# ....... other stuffs .....

Related