Search code examples
composer-php

git was not found in your PATH, skipping source download


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


Solution

  • 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