# phpstorm 安装laravel-ide-helper失败的解决办法

**URL:** <https://www.shiqidu.com/t/topic/786>\
**Category:** 开发调优\
**Tags:** PHP\
**Created:** [2022 年8 月 2 日 08:43 UTC](https://www.shiqidu.com/t/topic/786 "2022-08-02T08:43:09Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

作者： ![caojie](https://www.shiqidu.com/user_avatar/www.shiqidu.com/caojie/32/465_2.png) [@caojie](https://www.shiqidu.com/u/caojie)\
发布日期： [2022 年8 月 2 日 08:43 UTC](https://www.shiqidu.com/t/topic/786/1 "2022-08-02T08:43:09Z")

</div>

直接用官方的命令 `composer require --dev barryvdh/laravel-ide-helper` ，报错如下：

```auto
Problem 1
    - barryvdh/laravel-ide-helper 2.12.x-dev is an alias of barryvdh/laravel-ide-helper dev-master and thus requires it to be installed too.
    - barryvdh/laravel-ide-helper[dev-master, v2.12.0, ..., v2.12.3] require illuminate/console ^8 || ^9 -> found illuminate/console[v8.0.0, ..., 8.x-dev, v9.0.0-beta.1, ..., 9.x-dev] but these were not loaded, likely because it conflicts with another require.
    - Root composer.json requires barryvdh/laravel-ide-helper ^2.12 -> satisfiable by barryvdh/laravel-ide-helper[v2.12.0, ..., 2.12.x-dev (alias of dev-master)].

```

解决办法：

安装低版本的即可。

执行命令

```bash
composer require --dev barryvdh/laravel-ide-helper 2.8

```
