Hello Guys, How are you all? Hope You all Are Fine. Today I am just trying to composer update command and I am facing following error PackageManifest.php line 122: Undefined index: name in laravel. So Here I am Explain to you all the possible solutions here.
Without wasting your time, Let’s start This Article to Solve This Error.
- How PackageManifest.php line 122: Undefined index: name Error Occurs ?
- How To Solve PackageManifest.php line 122: Undefined index: name Error ?
- Solution 1: Find this line and comment it
- Solution 2: Downgrade Composer version
- Solution 3: following command resolved this issue
- Solution 4: Follow this Step
- Summary
How PackageManifest.php line 122: Undefined index: name Error Occurs ?
Today I am just trying to composer update command and I am facing following error.
PackageManifest.php line 122: Undefined index: name
How To Solve PackageManifest.php line 122: Undefined index: name Error ?
How To Solve PackageManifest.php line 122: Undefined index: name Error ?
To Solve PackageManifest.php line 122: Undefined index: name Error Just downgrading the composer version fixed the problem. In my case version 1.10.1 was the version to go with. Downgrade composer with this command composer self-update –1 second solution is To solve this issue follow this step: First Of All Delete compose.lock File Then Install dependencies. composer install
PackageManifest.php line 122: Undefined index: name
To Solve PackageManifest.php line 122: Undefined index: name Error Just downgrading the composer version fixed the problem. In my case version 1.10.1 was the version to go with. Downgrade composer with this command composer self-update –1 second solution is To solve this issue follow this step: First Of All Delete compose.lock File Then Install dependencies. composer install
Solution 1: Find this line and comment it
First of all Open PackageManifest.php which will be located at
<Your Project Root>/vendor/laravel/framework/src/Illuminate/Foundation/PackageManifest.php
Now 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: Downgrade Composer version
Just downgrading the composer version fixed the problem. In my case version 1.10.1 was the version to go with. Downgrade composer with this command
composer self-update --1
Solution 3: following command resolved this issue
following command resolved this issue:
composer update laravel/framework
Solution 4: Follow this Step
To solve this issue follow this step:
First Of All Delete compose.lock
File
Then Install dependencies.
composer install
Summary
It’s all About this issue. Hope all solution helped you a lot. Comment below Your thoughts and your queries. Also, Comment below which solution worked for you?
Also, Read