jvlcode / laravel-workshop

2 stars 0 forks source link

Composer Timeout Error #1

Open Suba-IC opened 3 months ago

Suba-IC commented 3 months ago

Hi, I am stuck with the below error and I could not find any solutions in any forums. Can you help me with this?

Creating a "laravel/laravel" project at "./student-registration" Installing laravel/laravel (v11.0.5)

In GitDownloader.php line 82:

git was not found in your PATH, skipping source download

create-project [-s|--stability STABILITY] [--prefer-source] [--prefer-dist] [--prefer-install PREFER-INSTALL] [--repository REPOSITORY] [--repository-url REPOSITORY-URL] [--add-repository] [--dev] [--no-dev] [--no-custom-installers] [--no-scripts] [--no-progress] [--no-secure-http] [--keep-vcs] [--remove-vcs] [--no-install] [--no-audit] [--audit-format AUDIT-FORMAT] [--ignore-platform-req IGNORE-PLATFORM-REQ] [--ignore-platform-reqs] [--ask] [--] [ [ []]]

jvlcode commented 3 months ago

Its because you need enable some PHP extensions. I mentioned on the video I think.

Just go to your "xampp" folder Open "php" folder Open php.ini file in any editor Search for ";extension=zip"

Remove ; symbol in the start and save file Try again the installation it would work

On Wed, 3 Apr 2024, 2:06 pm Suba-IC, @.***> wrote:

Hi, I am stuck with the below error and I could not find any solutions in any forums. Can you help me with this?

Creating a "laravel/laravel" project at "./student-registration" Installing laravel/laravel (v11.0.5)

  • Downloading laravel/laravel (v11.0.5) A connection timeout was encountered. If you intend to run Composer without connecting to the internet, run the command again prefixed with COMPOSER_DISABLE_NETWORK=1 to make Composer run in offline mode.
  • Downloading laravel/laravel (v11.0.5)
  • Downloading laravel/laravel (v11.0.5)
  • Downloading laravel/laravel (v11.0.5) Failed to download laravel/laravel from dist: curl error 28 while downloading https://api.github.com/repos/laravel/laravel/zipball/58baff2c70144c7cd4c04eecb51fee5a24e873a8: Resolving timed out after 10001 milliseconds Now trying to download from source

In GitDownloader.php line 82:

git was not found in your PATH, skipping source download

create-project [-s|--stability STABILITY] [--prefer-source] [--prefer-dist] [--prefer-install PREFER-INSTALL] [--repository REPOSITORY] [--repository-url REPOSITORY-URL] [--add-repository] [--dev] [--no-dev] [--no-custom-installers] [--no-scripts] [--no-progress] [--no-secure-http] [--keep-vcs] [--remove-vcs] [--no-install] [--no-audit] [--audit-format AUDIT-FORMAT] [--ignore-platform-req IGNORE-PLATFORM-REQ] [--ignore-platform-reqs] [--ask] [--] [ [ []]]

— Reply to this email directly, view it on GitHub https://github.com/jvlcode/laravel-workshop/issues/1, or unsubscribe https://github.com/notifications/unsubscribe-auth/ATQEKWE554W6Y6EJHSXMGILY3O5R5AVCNFSM6AAAAABFU3ATUSVHI2DSMVQWIX3LMV43ASLTON2WKOZSGIZDEMRYG4YDINQ . You are receiving this because you are subscribed to this thread.Message ID: @.***>

Suba-IC commented 3 months ago

Yes, I have already done that but it still continues to say Timeout error. Also I tried increasing the time thru this below code composer config --global process-timeout 2000

Suba-IC commented 3 months ago

Hi, I could not find any other forum solving this issue. And I tried in some other ways also. But still I receive the same issue. Can you please guide and help me in this.