当我尝试安装时,php artisan ui vue --auth这些错误正在显示。我怎样才能解决这个问题?
laravel verison:6.5.0
C:\xampp\htdocs\laravel\admindash>php artisan ui vue --auth
ErrorException : array_key_exists() expects parameter 2 to be array, null gi
ven
at C:\xampp\htdocs\laravel\admindash\vendor\laravel\ui\src\Presets\Preset.php:
40
36|
37| $packages = json_decode(file_get_contents(base_path('package.jso
n')), true);
38|
39| $packages[$configurationKey] = static::updatePackageArray(
> 40| array_key_exists($configurationKey, $packages) ? $packages[$
configurationKey] : [],
41| $configurationKey
42| );
43|
44| ksort($packages[$configurationKey]);
Exception trace:
1 array_key_exists("devDependencies")
C:\xampp\htdocs\laravel\admindash\vendor\laravel\ui\src\Presets\Preset.php
:40
2 Laravel\Ui\Presets\Preset::updatePackages()
C:\xampp\htdocs\laravel\admindash\vendor\laravel\ui\src\Presets\Bootstrap.
慕慕森
芜湖不芜