当前位置: 首页 > 工具软件 > Dev-PHP IDE > 使用案例 >

composer require --dev barryvdh/laravel-ide-helper报错解决

楚天宇
2023-12-01
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - barryvdh/laravel-ide-helper[dev-master, v2.9.0] require illuminate/console ^8 -> found illuminate/console[v8.0.0, ..
., 8.x-dev] but it conflicts with another require.
    - barryvdh/laravel-ide-helper 2.9.x-dev is an alias of barryvdh/laravel-ide-helper dev-master and thus requires it to
be installed too.
    - Root composer.json requires barryvdh/laravel-ide-helper ^2.9 -> satisfiable by barryvdh/laravel-ide-helper[v2.9.0, 2
.9.x-dev (alias of dev-master)].


Installation failed, reverting ./composer.json and ./composer.lock to their original content.

因为php8出了,所以这个支持是要看版本的,而我目前安装的是laravel7,所以默认安装的laravel-ide-helper版本不支持,我们安装低版本的就行的

composer require --dev barryvdh/laravel-ide-helper 2.8
 类似资料: