git was not found in your PATH, skipping source download
Asked Answered
B

6

10

I am using laravel 9.

when I write this command composer require bonecms/laravel-captcha

I got error given below

In GitDownloader.php line 77:

git was not found in your PATH, skipping source download

git was not found in your PATH, skipping source download

Burletta answered 30/10, 2022 at 13:3 Comment(1)
Does this answer your question? Composer says Git not foundLattice
C
3

You should use --prefer-dist for installation, Try:

composer install --prefer-dist

Alternatively you can try:

apt-get install git
composer install --prefer-dist

And then:

composer require bonecms/laravel-captcha
Collincolline answered 30/10, 2022 at 13:34 Comment(0)
T
17

Editing the php.ini and looking for the ;extension=zip to change it with extension=zip. Upon removing the semi-colon (;), my problem was solved.

Teepee answered 10/5, 2023 at 7:31 Comment(0)
T
8

If you have a similar error like:

In GitDownloader.php line 82:
                                                            
  git was not found in your PATH, skipping source download

Locate your php.ini configuration file.

For example C:\xampp\php look for the zip extension line and uncomment it (remove the semi-colon) behind it. It looks like extension=zip. That's all

Tuscany answered 11/3, 2023 at 12:56 Comment(0)
C
3

You should use --prefer-dist for installation, Try:

composer install --prefer-dist

Alternatively you can try:

apt-get install git
composer install --prefer-dist

And then:

composer require bonecms/laravel-captcha
Collincolline answered 30/10, 2022 at 13:34 Comment(0)
L
3

One fix for me, just by installing the zip/unzip packages:

apt-get install zip unzip

That worked!

Lianna answered 31/7, 2023 at 11:30 Comment(1)
This worked for me inside a self-hosted runner for GitHub Actions.Helper
S
0

go to xampp server clik on apache config file PHP(php.ini) find (extension zip) remove semicolon and save

Stew answered 1/7, 2024 at 16:40 Comment(0)
H
0

php.ini

Edit php.ini remove the semi-colon ';' before extension=zip

Herpetology answered 5/8, 2024 at 18:36 Comment(0)

© 2022 - 2025 — McMap. All rights reserved.