Laravel PackageManifest.php: Undefined index: name

Solution 1:

Try this, it worked for me, in the following file:

vendor/laravel/framework/src/Illuminate/Foundation/PackageManifest.php

Find this line and comment it:

$packages = json_decode($this->files->get($path), true);

Add two new lines after the above commented line:

$installed = json_decode($this->files->get($path), true);
$packages = $installed['packages'] ?? $installed;

Solution 2:

I had the same problem, I just execute the command:

composer update

this will updated the composer.lock file. After that worked like a charm.