Как исправить ошибку «когда istall laravel framwork erro: файл не может быть загружен: не удалось открыть поток: сбой HTTP-запроса!» - PullRequest
0 голосов
/ 04 ноября 2019

Я пытаюсь установить laravel framework на мой офисный компьютер с помощью composer, но всегда появляется эта ошибка, и установка не удалась.

у нас есть прокси в офисной среде, поэтому я вставляю его в композитор при установке композитора. но это происходит снова и снова.

updating composer
clear cache 
composer diagnosing 

F:\xampp\htdocs>composer config -g repo.packagist composer https://packagist.org

F:\xampp\htdocs>composer create --prefer-dist laravel/laravel blog
Installing laravel/laravel (v6.4.0)
  - Installing laravel/laravel (v6.4.0): Downloading (failed)
Downloading (failed)
Downloading (failed)    Failed to download laravel/laravel from dist: The "https://api.github.com/repos/laravel/laravel/zipball/953b488b8bb681d4d6e12227645c7c1b7ac26935" file could not be downloaded: SSL: An existing connection was forcibly closed by the remote host.

send of 233 bytes failed with errno=10054 An existing connection was forcibly closed by the remote host.

failed to open stream: HTTP request failed!
    Now trying to download from source
  - Installing laravel/laravel (v6.4.0): Cloning 953b488b8b


  [RuntimeException]
  Failed to clone https://github.com/laravel/laravel.git via https, ssh protocols, aborting.

  - https://github.com/laravel/laravel.git
    Cloning into 'F:\xampp\htdocs\blog'...
    fatal: unable to access 'https://github.com/laravel/laravel.git/': Unknown SSL protocol error in connection to gi
  thub.com:443

  - git@github.com:laravel/laravel.git
    Cloning into 'F:\xampp\htdocs\blog'...
    ssh_exchange_identification: read: Connection reset by peer
    fatal: Could not read from remote repository.

    Please make sure you have the correct access rights
    and the repository exists.


create-project [-s|--stability STABILITY] [--prefer-source] [--prefer-dist] [--repository REPOSITORY] [--repository-url REPOSITORY-URL] [--dev] [--no-dev] [--no-custom-installers] [--no-scripts] [--no-progress] [--no-secure-http] [--keep-vcs] [--remove-vcs] [--no-install] [--ignore-platform-reqs] [--] [<package>] [<directory>] [<version>]


F:\xampp\htdocs>
Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...