Unable to download and install Laravel 5 with composer. Error: HTTP request failed

I can’t download the lavarvel installer using composer 1.2.0 (latest version) Received error: Could not open stream: HTTP request failed! I googled and could not find an answer to fix this for the problem.

If possible, try running this command composer global require "laravel/installer"to see if it works? I think the link to packaglist is no longer valid, but I'm not sure.

enter image description here

C:\wamp\www\st>composer self-update -vvv
Reading ./composer.json
Loading config file ./composer.json
Checked CA file C:\Users\Louis\AppData\Local\Temp\composer-cacert-bcf331364fef73d53e4368ba519a6c3fcb21ea7836c3d8efad4ec32731e8152a.pem: valid
Executing command (C:\wamp\www\st): git branch --no-color --no-abbrev -v
Executing command (C:\wamp\www\st): git describe --exact-match --tags
Executing command (C:\wamp\www\st): git log --pretty="%H" -n1 HEAD
Reading C:/Users/Louis/AppData/Roaming/Composer/composer.json
Loading config file C:/Users/Louis/AppData/Roaming/Composer/composer.json
Running 1.2.0 (2016-07-19 01:28:52) with PHP 5.5.12 on Windows NT / 6.2
You are running composer with xdebug enabled. This has a major impact on runtime performance. See https://getcomposer.org/xdebug
Downloading https://getcomposer.org/versions
You are already using composer version 1.2.0 (stable channel).
+4
source share
4 answers

. , Kaspersky Internet Security packagist.org. , , .

*** : - , Laravel.

.

+1

laravel ( 1)

1.

2.

wamp > www > shift → create-project laravel/laravel laravel, + , php artisan serve

Laravel

• laravel wamp > www > laravelproject • .env.example , .env - Copy.example , • , .env - Copy.example .env • wamp > www > laravelproject, shift + , PHP-: promt

+2

, , php 5.5, php,

composer global require "laravel/installer"

php,

composer global require "laravel/installer=~1.1"

0

I believe your problem is that the config.json file for Composer has "packagist": false "inside the file. Try opening the file and change it to: true"

Or run

cd ~ / .composer / vendor / bin

Then

global composer requires "laravel / installer"

0
source

Source: https://habr.com/ru/post/1653965/


All Articles