Replies: 1 comment
-
I have similar issue when installing Laravel 6 project on new machine using composer 2. Composer installs laravel 6.6.2 but
and then I get error on EDIT: After posting this I discovered that Composer 2 is supported form Laravel 6.18.7 but my project is lock at Laravel 6.6.2 so no problem. I should use Composer 1 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Description:
When upgrading from version 5.8 to 6.0 "composer update" fails with the error message In PackageManifest.php line 122: Undefined index: name. When composer is downloading version 6.0 from git, it uses the following URL: https://api.github.com/repos/laravel/framework/zipball/372e0add8a58e0e3deb78f87cbb2dc40d3e0ff08 (from the file vendor/composer/installed.json). The problem with this zip file is that it contains a PackageManifest.php file that is missing the following line:
$packages = $installed['packages'] ?? $installed;
This line of code, however, is present in the repository https://github.com/laravel/framework/blob/6.x/src/Illuminate/Foundation/PackageManifest.php
Steps To Reproduce:
composer create-project laravel/laravel="5.8.*" test
cd test
edit the file "composer.json" as follows (change the laravel framework version from 5.8.* to 6.0.):
"require": {
"php": "^7.1.3",
"fideloper/proxy": "^4.0",
"laravel/framework": "6.0",
"laravel/tinker": "^1.0"
},
composer update
Please update the file PackageManifest.php in the zip file.
Beta Was this translation helpful? Give feedback.
All reactions