Composer\Downloader\TransportException - composer-php

C:\xampp\htdocs\laravel_l>composer update
The "https://original.packagist.jp/packages.json" file could not be downloaded: php_network_getaddresses: getaddrinfo failed: No such host is known.
failed to open stream: php_network_getaddresses: getaddrinfo failed: No such host is known.
https://original.packagist.jp could not be fully loaded, package information was loaded from the local cache and may be out of date
Loading composer repositories with package information
The "https://original.packagist.jp/packages.json" file could not be downloaded: php_network_getaddresses: getaddrinfo failed: No such host is known.
failed to open stream: php_network_getaddresses: getaddrinfo failed: No such host is known.
https://original.packagist.jp could not be fully loaded, package information was loaded from the local cache and may be out of date
Updating dependencies (including require-dev)
[Composer\Downloader\TransportException]
The "https://original.packagist.jp/p/doctrine/dbal%2417ae46d6beb8d0b5cfd7df33d21dbd21443feeaf54bdc9d841ac03de5ab99c
1d.json" file could not be downloaded: php_network_getaddresses: getaddrinfo failed: No such host is known.
failed to open stream: php_network_getaddresses: getaddrinfo failed: No such host is known.
update [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-dev] [--lock] [--no-custom-installers] [--no-autoloader] [--no-scripts] [--no-progress] [--no-suggest] [--with-dependencies] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--apcu-autoloader] [--ignore-platform-reqs] [--prefer-stable] [--prefer-lowest] [-i|--interactive] [--root-reqs] [--] [<packages>]...
Hi guys i have error. I could't download everything after I had installed pagkage Prestissimo

Related

Error installing Laravel: [ErrorException] file_get_contents(): read of 8192 bytes failed

This is the error:
Generating optimized autoload files
...
[ErrorException]
file_get_contents(): read of 8192 bytes failed with errno=9 Bad file descriptor
create-project [-s|--stability STABILITY] [--prefer-source] [--prefer-dist] [--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] [--ignore-platform-req IGNORE-PLATFORM-REQ] [--ignore-platform-reqs] [--ask] [--] [] [] [<version
...
This is usually a cache problem with composer. Either you have a slow connection (like me) or a process was interrupted during install/update.
Run composer clear-cache and try again. I hope this solves your problem.
Which PHP version are you using? cause this was a bug in PHP 7.4 as stated here :
https://bugs.php.net/bug.php?id=79166
Try using PHP 7.3, it should work fine

I am trying to install drush using composer . But facing 'crypto failed to open stream' issue

My composer version is 1.9.0
I am trying to install drush . but got some error.
composer global require drush/drush:dev-master
Output :
Changed current directory to /root/.config/composer
[Composer\Downloader\TransportException] The
"https://repo.packagist.org/packages.json" file could not be
downloaded: Failed to enable crypto failed to open stream: operation
failed
require [--dev] [--prefer-source] [--prefer-dist] [--no-progress]
[--no-suggest] [--no-update] [--no-scripts] [--update-no-dev]
[--update-with-dependencies] [--update-with-all-dependencies]
[--ignore-platform-reqs] [--prefer-stable] [--prefer-lowest]
[--sort-packages] [-o|--optimize-autoloader]
[-a|--classmap-authoritative] [--apcu-autoloader] [--] []...
When I run composer diagnose
Output :

Unable to install laravel using composer "composer create-project --prefer-dist laravel/laravel blog"

Installing laravel/laravel (v5.7.13)
- Installing laravel/laravel (v5.7.13): Downloading (failed)
Downloading (failed)
Downloading (failed) Failed to download laravel/laravel from dist: The "https://api.github.com/repos/laravel/laravel/zipball/c09519f547ae7a97eb26433f159cd81b8753e666" file could not be downloaded: SSL operation failed with code 1. OpenSSL Error messages:
error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed
Failed to enable crypto
failed to open stream: operation failed
Now trying to download from source
- Installing laravel/laravel (v5.7.13): Cloning c09519f547
[RuntimeException]
Failed to clone https://github.com/laravel/laravel.git, git was not found, check that it is installed and in your P
ATH env.
'git' is not recognized as an internal or external command,
operable program or batch file.
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] [--] [] [] []

not able to install laravel

I am not able to install laravel on my system .i have attached image along with query
[Composer\Downloader\TransportException]
The "http://packagist.org/p/provider-2017-10%24c2da5c82073ff36a0c3e2ab10e7a64132a6a9ec5a4d8036e0b9b74108a6e0f8d.jso
n" file could not be downloaded: php_network_getaddresses: getaddrinfo failed: No such host is known.
failed to open stream: php_network_getaddresses: getaddrinfo failed: No such host is known.
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] [--no-install] [--ignore-platform-reqs] [--] [] [] []
Try updating your composer using the command - composer selfupdate

Exception "Your version of PHP... is affected by CVE-2013-6420..." when creating Laravel project

On running the command:
composer create-project --prefer-dist laravel/laravel blog
I am getting these errors -
Your version of PHP, 5.4.12, is affected by CVE-2013-6420 and cannot safely perform
certificate validation, we strongly suggest you upgrade.
[Composer\Downloader\TransportException]
The "https://packagist.org/packages.json" file could not be downloaded:
SSL operation failed with code 1. OpenSSL Error messages:
error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol
Failed to enable crypto
failed to open stream: operation failed
create-project [-s|--stability STABILITY] [--prefer-source]
[--prefer-dist] [--repository REPOSITORY] [--repository-url
REPOSITORY-URL] [--dev] [--no-dev] [--no-plugins]
[--no-custom-installers] [--no-scripts] [--noprogress] [--keep-vcs]
[--no-install] [--ignore-platform-reqs] [--] [<package>] [<directory>][<version>]
Can anyone please tell me what may be the problem. I am using a proxy network. In environment variable I have set both http_proxy & https_proxy.
For laravel 5.2 minimum version of php required is 5.5.9
So you have to upgrade your php version.
Also you need to have only http_proxy as system variable if you are using proxy network, not the https_proxy variable.

Resources