2020年12月7日 星期一

LibreNMS - In PackageManifest.php line 122: Undefined index: name ( 問題修正 )

 LibreNMS - In PackageManifest.php line 122: Undefined index: name ( 問題修正 ) 請用本文依序操作。

> 安裝 composer

composer install

> 更新 composer

composer update

> 編輯 PackageManifest.php

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

====================================

$packages = json_decode($this->files->get($path), true);    <== 搜尋這條

$installed = json_decode($this->files->get($path), true);    <== 加入這條

$packages = $installed['packages'] ?? $installed;    <== 加入這條

====================================




1 則留言: