我正在尝试通过composer在laravel v5.8.4中安装Form&Html软件包,但无法正常工作。我每次都会收到此错误。我尝试使用Google搜索解决方案,但都失败了。总是相同的错误。
我正在尝试安装"laravelcollective/html": "~5.0"
。 composer update
和composer require ...
两种方式都尝试过
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Conclusion: remove laravel/framework v5.8.4
- graham-campbell/htmlmin v4.4.0 requires illuminate/view 5.1.*|5.2.*|5.3.* -> satisfiable by illuminate/view[5.1.x-dev, 5.2.x-dev, 5.3.x-dev, v5.1.1, v5.1.13, v5.1.16, v5.1.2, v5.1.20, v5.1.22, v5.1.25, v5.1.28, v5.1.30, v5.1.31, v5.1.41, v5.1.6, v5.1.8, v5.2.0, v5.2.19, v5.2.21, v5.2.24, v5.2.25, v5.2.26, v5.2.27, v5.2.28, v5.2.31, v5.2.32, v5.2.37, v5.2.43, v5.2.45, v5.2.6, v5.2.7, v5.3.0, v5.3.16, v5.3.23, v5.3.4].
- graham-campbell/htmlmin v4.5.0 requires illuminate/view 5.1.*|5.2.*|5.3.*|5.4.* -> satisfiable by illuminate/view[5.1.x-dev, 5.2.x-dev, 5.3.x-dev, 5.4.x-dev, v5.1.1, v5.1.13, v5.1.16, v5.1.2, v5.1.20, v5.1.22, v5.1.25, v5.1.28, v5.1.30, v5.1.31, v5.1.41, v5.1.6, v5.1.8, v5.2.0, v5.2.19, v5.2.21, v5.2.24, v5.2.25, v5.2.26, v5.2.27, v5.2.28, v5.2.31, v5.2.32, v5.2.37, v5.2.43, v5.2.45, v5.2.6, v5.2.7, v5.3.0, v5.3.16, v5.3.23, v5.3.4, v5.4.0, v5.4.13, v5.4.17, v5.4.19, v5.4.27, v5.4.36, v5.4.9].
- don't install illuminate/view 5.2.x-dev|don't install laravel/framework v5.8.4
- don't install illuminate/view v5.2.0|don't install laravel/framework v5.8.4
- don't install illuminate/view v5.2.19|don't install laravel/framework v5.8.4
- don't install illuminate/view v5.2.21|don't install laravel/framework v5.8.4
- don't install illuminate/view v5.2.24|don't install laravel/framework v5.8.4
- don't install illuminate/view v5.2.25|don't install laravel/framework v5.8.4
- don't install illuminate/view v5.2.26|don't install laravel/framework v5.8.4
- don't install illuminate/view v5.2.27|don't install laravel/framework v5.8.4
- don't install illuminate/view v5.2.28|don't install laravel/framework v5.8.4
- don't install illuminate/view v5.2.31|don't install laravel/framework v5.8.4
- don't install illuminate/view v5.2.32|don't install laravel/framework v5.8.4
- don't install illuminate/view v5.2.37|don't install laravel/framework v5.8.4
- don't install illuminate/view v5.2.43|don't install laravel/framework v5.8.4
- don't install illuminate/view v5.2.45|don't install laravel/framework v5.8.4
- don't install illuminate/view v5.2.6|don't install laravel/framework v5.8.4
- don't install illuminate/view v5.2.7|don't install laravel/framework v5.8.4
- don't install illuminate/view 5.3.x-dev|don't install laravel/framework v5.8.4
- don't install illuminate/view v5.3.0|don't install laravel/framework v5.8.4
- don't install illuminate/view v5.3.16|don't install laravel/framework v5.8.4
- don't install illuminate/view v5.3.23|don't install laravel/framework v5.8.4
- don't install illuminate/view v5.3.4|don't install laravel/framework v5.8.4
- don't install illuminate/view 5.4.x-dev|don't install laravel/framework v5.8.4
- don't install illuminate/view v5.4.0|don't install laravel/framework v5.8.4
- don't install illuminate/view v5.4.13|don't install laravel/framework v5.8.4
- don't install illuminate/view v5.4.17|don't install laravel/framework v5.8.4
- don't install illuminate/view v5.4.19|don't install laravel/framework v5.8.4
- don't install illuminate/view v5.4.27|don't install laravel/framework v5.8.4
- don't install illuminate/view v5.4.36|don't install laravel/framework v5.8.4
- don't install illuminate/view v5.4.9|don't install laravel/framework v5.8.4
- don't install illuminate/view 5.1.x-dev|don't install laravel/framework v5.8.4
- don't install illuminate/view v5.1.1|don't install laravel/framework v5.8.4
- don't install illuminate/view v5.1.13|don't install laravel/framework v5.8.4
- don't install illuminate/view v5.1.16|don't install laravel/framework v5.8.4
- don't install illuminate/view v5.1.2|don't install laravel/framework v5.8.4
- don't install illuminate/view v5.1.20|don't install laravel/framework v5.8.4
- don't install illuminate/view v5.1.22|don't install laravel/framework v5.8.4
- don't install illuminate/view v5.1.25|don't install laravel/framework v5.8.4
- don't install illuminate/view v5.1.28|don't install laravel/framework v5.8.4
- don't install illuminate/view v5.1.30|don't install laravel/framework v5.8.4
- don't install illuminate/view v5.1.31|don't install laravel/framework v5.8.4
- don't install illuminate/view v5.1.41|don't install laravel/framework v5.8.4
- don't install illuminate/view v5.1.6|don't install laravel/framework v5.8.4
- don't install illuminate/view v5.1.8|don't install laravel/framework v5.8.4
- Installation request for laravel/framework 5.8.4 -> satisfiable by laravel/framework[v5.8.4].
- Installation request for graham-campbell/htmlmin ^4.4 -> satisfiable by graham-campbell/htmlmin[v4.4.0, v4.5.0].
答案 0 :(得分:2)
还原您的composer.json
和composer.lock
文件
尝试后
composer require laravelcollective/html
它将安装最新版本,并且与laravel 5.8
您正在尝试使用与"laravelcollective/html": "~5.0"
不兼容的特定标签安装laravel 5.8
答案 1 :(得分:0)
能否请您使用laravelcollective / html“:”〜5.0“软件包检查其是否支持Laravel 5.8。如果您的软件包中的任何一个与laravel 5.8版本都不匹配,则会显示此错误。请添加适当的版本并运行作曲家更新。它肯定会起作用...