in packagemanifest php line 120 undefined index name

Undefined index: name errors using Composer 2.01 for updating Laravel 6 #9340

Comments

arkid commented Oct 25, 2020 •

Edit: See below for the solution

Output of composer diagnose :

Checking composer.json: OK
Checking platform settings: OK
Checking git settings: OK
Checking http connectivity to packagist: OK
Checking https connectivity to packagist: OK
Checking github.com rate limit: OK
Checking disk free space: OK
Checking pubkeys:
Tags Public Key Fingerprint: 57815BA2 7E54DC31 7ECC7CC5 573090D0 87719BA6 8F3BB723 4E5D42D0 84A14642
Dev Public Key Fingerprint: 4AC45767 E5EC2265 2F0C1167 CBBB8A2B 0C708369 153E328C AD90147D AFE50952
OK
Checking composer version: OK
Composer version: 2.0.1
PHP version: 7.3.7
PHP binary path: C:\Program Files\php\7.3.7\php.exe
OpenSSL version: OpenSSL 1.1.1c 28 May 2019
cURL version: 7.64.0 libz 1.2.11 ssl OpenSSL/1.1.1c
zip extension: OK

When I run this command:

I get the following output:

Undefined index: name

The text was updated successfully, but these errors were encountered:

We are unable to convert the task to an issue at this time. Please try again.

The issue was successfully created but we are unable to update the comment at this time.

simonberger commented Oct 25, 2020 •

Searching for this issue shows several reports of laravel users in the last months. All seemed to just downgrade to composer stable (at that time) release again.
If you can edit your PackageManifest.php output the current package array instead of letting it fail and/or check the
vendor/composer./installed.json file for packages without a name property (for whatever reason). Apart from this the error happens in artisan and you should file a bug there.

Seldaek commented Oct 25, 2020

Yup, please report on the https://github.com/laravel/framework repo, artisan crashes are not something we can fix.

Seldaek commented Oct 25, 2020 •

If you are using illuminate/foundation instead of laravel/framework, then make sure you composer update illuminate/foundation instead.

Источник

Laravel PackageManifest.php: неопределенный индекс: имя

Я просто пытаюсь развернуть свое приложение, я только что запустил composer update на своем сервере и получил следующую ошибку:

В PackageManifest.php строка 122: Неопределенный индекс: имя

Как я могу исправить эту проблему?

19 ответов

Я надеюсь, что это сработает.

Попробуйте это, у меня это сработало в следующем файле:

Найдите эту строку и прокомментируйте ее:

Добавьте две новые строки после строки с комментариями:

У меня была такая же проблема, я просто выполняю команду:

Это обновит файл composer.lock. После этого работал как шарм.

Я обновил свой фреймворк Laravel с 5.8 до 5.8.38, следуя таблице, отображаемой в этом выпуске, и ошибка исчезла.

Если вы не можете обновить Laravel, вы можете просто остаться с Composer 1, запустив

В моем случае, понижение версии композитора устранило проблему.

Как указано здесь, ваша версия laravel может конфликтовать с композитором 2

Должен исправить вашу проблему: D

У меня сработало выполнение следующей команды. Может быть, это поможет кому-то малообеспеченному.

Запуск composer update работал для моего проекта с Laravel 5.7

Для моего проекта Laravel 5.7 удаление папки vendor и файла composer.lock устранило проблему.

Выполнение следующей команды исправило это для нас

Некоторые версии композитора выдают эту ошибку, версия 1.10.20 не выдает эту ошибку

Моим решением в моем случае было обновление композитора вместо установки композитора. В случае обновления композитора он не использует файл composer.lock и обновляет пакеты из composer.json. У меня и в моем частном случае работает.

Чтобы вернуться к предыдущей версии композитора:

ТЕПЕРЬ COMPOSER 2.0 ОЧЕНЬ БЫСТРО.

У меня есть решение:

Это сделано для того, чтобы у вас не было проблем с ошибками в файле.

Попробуйте это, у меня это сработало в следующем файле:

Поставщик / laravel / framework / src / Illuminate / Foundation / PackageManifest.php

Найдите эту строку и прокомментируйте ее

Добавьте две новые строки после строки, прокомментированной выше

Запустите обновление композитора. Эта работа для меня на laravel 7

Источник

Laravel PackageManifest.php: Undefined index: name

I’m just trying to deploy my application and I just ran composer update on my server and I got the following error:

In PackageManifest.php line 122: Undefined index: name

How can I fix this issue?

24 Answers 24

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

Find this line and comment it:

Add two new lines after the above commented line:

in packagemanifest php line 120 undefined index name. Смотреть фото in packagemanifest php line 120 undefined index name. Смотреть картинку in packagemanifest php line 120 undefined index name. Картинка про in packagemanifest php line 120 undefined index name. Фото in packagemanifest php line 120 undefined index name

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

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

I updated my Laravel framework from 5.8 to 5.8.38, following the table displayed in that issue and the error disappeared.

If you can’t upgrade Laravel, you can just stay with Composer 1 by running

in packagemanifest php line 120 undefined index name. Смотреть фото in packagemanifest php line 120 undefined index name. Смотреть картинку in packagemanifest php line 120 undefined index name. Картинка про in packagemanifest php line 120 undefined index name. Фото in packagemanifest php line 120 undefined index name

in packagemanifest php line 120 undefined index name. Смотреть фото in packagemanifest php line 120 undefined index name. Смотреть картинку in packagemanifest php line 120 undefined index name. Картинка про in packagemanifest php line 120 undefined index name. Фото in packagemanifest php line 120 undefined index name

$ composer update laravel/framework

in packagemanifest php line 120 undefined index name. Смотреть фото in packagemanifest php line 120 undefined index name. Смотреть картинку in packagemanifest php line 120 undefined index name. Картинка про in packagemanifest php line 120 undefined index name. Фото in packagemanifest php line 120 undefined index name

In my case downgrading the composer version fixed the problem.

in packagemanifest php line 120 undefined index name. Смотреть фото in packagemanifest php line 120 undefined index name. Смотреть картинку in packagemanifest php line 120 undefined index name. Картинка про in packagemanifest php line 120 undefined index name. Фото in packagemanifest php line 120 undefined index name

I recently switched composer 2.0.8 and my Laravel version is 6.20.27

To solve this issue:

Step 1:

Delete compose.lock File

Step 2:

As stated in here, your laravel version may conflict with composer 2

should fix your problem 😀

Running the following command worked for me. Maybe this will help someone needy.

in packagemanifest php line 120 undefined index name. Смотреть фото in packagemanifest php line 120 undefined index name. Смотреть картинку in packagemanifest php line 120 undefined index name. Картинка про in packagemanifest php line 120 undefined index name. Фото in packagemanifest php line 120 undefined index name

I removed my vendor folder and composer.lock and ran composer install again. This solved it for me.

Running composer update worked for my project with Laravel 5.7

in packagemanifest php line 120 undefined index name. Смотреть фото in packagemanifest php line 120 undefined index name. Смотреть картинку in packagemanifest php line 120 undefined index name. Картинка про in packagemanifest php line 120 undefined index name. Фото in packagemanifest php line 120 undefined index name

in packagemanifest php line 120 undefined index name. Смотреть фото in packagemanifest php line 120 undefined index name. Смотреть картинку in packagemanifest php line 120 undefined index name. Картинка про in packagemanifest php line 120 undefined index name. Фото in packagemanifest php line 120 undefined index name

I was facing the same issue. I Saw my Laravel framework version is «laravel/framework»: «6.0» So just put the cap before the version and it starts working fine. «laravel/framework»: «^6.0»

in packagemanifest php line 120 undefined index name. Смотреть фото in packagemanifest php line 120 undefined index name. Смотреть картинку in packagemanifest php line 120 undefined index name. Картинка про in packagemanifest php line 120 undefined index name. Фото in packagemanifest php line 120 undefined index name

For my Laravel 5.7 project deleting vendor folder and composer.lock file fixed the issue.

Some versions of composer give this error, the version 1.10.20 doesn’t throw this error

Running the following command fixed it for us

This is so you don’t have problems with bugs in the file.

in packagemanifest php line 120 undefined index name. Смотреть фото in packagemanifest php line 120 undefined index name. Смотреть картинку in packagemanifest php line 120 undefined index name. Картинка про in packagemanifest php line 120 undefined index name. Фото in packagemanifest php line 120 undefined index name

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

Find this line and comment on it

Add two new lines after the above-commented line

If you want to fix without making updates and composer updates

just go to vendor/composer and remove installed.json

in packagemanifest php line 120 undefined index name. Смотреть фото in packagemanifest php line 120 undefined index name. Смотреть картинку in packagemanifest php line 120 undefined index name. Картинка про in packagemanifest php line 120 undefined index name. Фото in packagemanifest php line 120 undefined index name

To downgrade composer to an old version:

in packagemanifest php line 120 undefined index name. Смотреть фото in packagemanifest php line 120 undefined index name. Смотреть картинку in packagemanifest php line 120 undefined index name. Картинка про in packagemanifest php line 120 undefined index name. Фото in packagemanifest php line 120 undefined index name

here’s a solution that worked for me. https://github.com/composer/composer/issues/9340#issuecomment-716210369 change your laravel framework to 6.18.7 so that its compatible with composer 2

in packagemanifest php line 120 undefined index name. Смотреть фото in packagemanifest php line 120 undefined index name. Смотреть картинку in packagemanifest php line 120 undefined index name. Картинка про in packagemanifest php line 120 undefined index name. Фото in packagemanifest php line 120 undefined index name

I had the same problem after i clone an laravel project and start composer install. Then I read through some solutions here. In my opinion, it is not a good idea to edit the laravel core. But if it’s just for testing, why not.

My solution in my case was composer update instead composer install. In the case of composer update, it does not use the composer.lock file and updates the packages from composer.json. For me and in my special case works.

On my computer composer version 2.0.9 was installed, I had the same problem when upgrade laravel project.

the solution is :

finally, it works perfectly.

Источник

Добавить комментарий

Ваш адрес email не будет опубликован. Обязательные поля помечены *