A
A
Alexander Timofeev2017-06-02 13:59:16
gulp.js
Alexander Timofeev, 2017-06-02 13:59:16

Bower gives an error git is not installed or not in the PATH, how to configure?

I installed git myself. Bower installed both globally and locally.
I found instructions here on how to change some paths ( https://stackoverflow.com/questions/20666989/bower... ), but I'm not sure if it's worth changing something there.

Answer the question

In order to leave comments, you need to log in

4 answer(s)
A
Alexander Timofeev, 2017-06-02
@aldtimofeev

There, the default checkbox is, as I understand it, but it is called a little differently.
I just did not go through git, but through the usual command line.

A
Alexander Lysenko, 2017-06-02
@AlexanderZe

If you do not have git and git bash, then download it from the official site git-scm.com
If you are a windows user, do not forget to set the radio button to "Run Git from the Windows Command Prompt" during installation. This way, git will automatically be added to your PATH, which will save you a lot of effort and frustration in the future.

E
Elena Platonova, 2018-01-30
@Lia5

Add the desired folder to PATH manually.
In Windows 8.1, this is through the "Control Panel" (or RMB on the "Start" button) - "System" - "Advanced system settings" - the "Advanced" tab (active by default) - "Environment Variables ..." (button at the bottom) add to the Path list

;%PROGRAMFILES(x86)%\Git\bin;%PROGRAMFILES(x86)%\Git\cmd
and restart your computer.
So you found the correct instruction)

D
dwnld, 2018-06-24
@dwnld

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

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question