简体   繁体   English

Laravel 8:安装失败,正在恢复。/composer.json 到其原始内容

[英]Laravel 8: Installation failed, reverting ./composer.json to its original content

I'm using Laravel 8, and I want to install Laravel Collective v5.7.我正在使用 Laravel 8,我想安装 Laravel Collective v5.7。

So at the Terminal I said:所以在终端我说:

composer require "laravelcollective/html":"5.7.1"

But it returns this error:但它返回此错误:

Your requirements could not be resolved to an installable set of packages.您的要求无法解决为一组可安装的软件包。

  Problem 1
    - Installation request for laravelcollective/html 5.7.1 -> satisfiable by laravelcollective/html[v5.7.1].
    - Conclusion: remove laravel/framework v8.37.0
    - Conclusion: don't install laravel/framework v8.37.0
    - laravelcollective/html v5.7.1 requires illuminate/view 5.7.* -> satisfiable by illuminate/view[5.7.17, 5.7.18, 5.7.19, 5.7.x-dev, v5.7.0, v5.7.1, v5.7.10, v5.7.11, v5.7.15, v5.7.2, v5.7.
20, v5.7.21, v5.7.22, v5.7.23, v5.7.26, v5.7.27, v5.7.28, v5.7.3, v5.7.4, v5.7.5, v5.7.6, v5.7.7, v5.7.8, v5.7.9].
    - don't install illuminate/view 5.7.17|don't install laravel/framework v8.37.0
    - don't install illuminate/view 5.7.18|don't install laravel/framework v8.37.0
    - don't install illuminate/view 5.7.19|don't install laravel/framework v8.37.0
    - don't install illuminate/view 5.7.x-dev|don't install laravel/framework v8.37.0
    - don't install illuminate/view v5.7.0|don't install laravel/framework v8.37.0
    - don't install illuminate/view v5.7.1|don't install laravel/framework v8.37.0
    - don't install illuminate/view v5.7.10|don't install laravel/framework v8.37.0
    - don't install illuminate/view v5.7.11|don't install laravel/framework v8.37.0
    - don't install illuminate/view v5.7.15|don't install laravel/framework v8.37.0
    - don't install illuminate/view v5.7.2|don't install laravel/framework v8.37.0
    - don't install illuminate/view v5.7.20|don't install laravel/framework v8.37.0
    - don't install illuminate/view v5.7.21|don't install laravel/framework v8.37.0
    - don't install illuminate/view v5.7.22|don't install laravel/framework v8.37.0
    - don't install illuminate/view v5.7.23|don't install laravel/framework v8.37.0
    - don't install illuminate/view v5.7.26|don't install laravel/framework v8.37.0
    - don't install illuminate/view v5.7.27|don't install laravel/framework v8.37.0
    - don't install illuminate/view v5.7.28|don't install laravel/framework v8.37.0
    - don't install illuminate/view v5.7.3|don't install laravel/framework v8.37.0
    - don't install illuminate/view v5.7.4|don't install laravel/framework v8.37.0
    - don't install illuminate/view v5.7.5|don't install laravel/framework v8.37.0
    - don't install illuminate/view v5.7.6|don't install laravel/framework v8.37.0
    - don't install illuminate/view v5.7.7|don't install laravel/framework v8.37.0
    - don't install illuminate/view v5.7.8|don't install laravel/framework v8.37.0
    - don't install illuminate/view v5.7.9|don't install laravel/framework v8.37.0
    - Installation request for laravel/framework (locked at v8.37.0, required as ^8.12) -> satisfiable by laravel/framework[v8.37.0].


Installation failed, reverting ./composer.json to its original content.

So what's going wrong?那么出了什么问题呢? How can I install that version of Laravel Collective properly?如何正确安装该版本的 Laravel Collective?

This is the crucial information:这是关键信息:

laravelcollective/html v5.7.1 requires illuminate/view 5.7.*

v5.7 of that package requires Laravel 5.7, but your are using Laravel v8. package 的 v5.7 需要 Laravel 5.7,但您使用的是 Laravel v8。

All versions since v6.2 are compatible with Laravel v8. v6.2 以后的所有版本都与 Laravel v8 兼容。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Laravel Composer 错误:安装失败,正在将 ./composer.json 恢复为其原始内容 - Laravel Composer Error: Installation failed, reverting ./composer.json to its original content 安装失败,在 Laravel 8.12 中将./composer.json 还原为其原始内容错误 - Installation failed, reverting ./composer.json to its original content error in Laravel 8.12 安装 package 时出现错误 laravel 5.8(安装失败,正在恢复。/composer.json 到其原始内容。) - Error laravel 5.8 installing package (Installation failed, reverting ./composer.json to its original content.) 安装失败,正在将./composer.json 还原为其原始内容 [Composer\Repository\InvalidRepositoryException] - Installation failed, reverting ./composer.json to its original content [Composer\Repository\InvalidRepositoryException] Symfony REST:voryx / restgeneratorbundle安装失败,将./composer.json恢复为其原始内容 - Symfony REST: voryx/restgeneratorbundle Installation failed, reverting ./composer.json to its original content 如何修复此错误“安装失败,正在恢复。/composer.json 到其原始内容。 ” - how can fix this error “ Installation failed, reverting ./composer.json to its original content. ” 安装失败,正在将 ./composer.json 和 ./composer.lock 恢复为其原始内容 - Installation failed, reverting ./composer.json and ./composer.lock to their original content 将 composer.json 放在 CakePHP 安装的根目录中 - Putting composer.json in the root of a CakePHP installation 在AWS Elastic Beanstalk上安装Composer.json - Composer.json Installation On AWS Elastic Beanstalk Symfony 2捆绑有自己的composer.json - Symfony 2 bundle with its own composer.json
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM