laravel 包不安装照明/支持

Posted

技术标签:

【中文标题】laravel 包不安装照明/支持【英文标题】:laravel package dont install illuminate/support 【发布时间】:2014-01-11 23:57:14 【问题描述】:

这发生在我尝试安装 zizaco confide 软件包时。

这是我的 composer.json 添加后的样子:

http://pastebin.com/R9KgCaPR

我什至将它恢复到它工作时的位置,但仍然没有:

http://pastebin.com/5hSvMs9E

这就是命令行给我的:

C:\Users\Halichu>H:

H:\>cd "H:\WD SmartWare.swstor\HALEY-HP\Source\ATA\swafap"

H:\WD SmartWare.swstor\HALEY-HP\Source\ATA\swafap>composer update
Loading composer repositories with package information Updating
dependencies (including require-dev) Your requirements could not be
resolved to an installable set of packages.

  Problem 1
    - Conclusion: remove laravel/framework 4.0.x-dev
    - Conclusion: don't install laravel/framework 4.0.x-dev
    - Conclusion: don't install laravel/framework v4.0.10
    - Conclusion: don't install laravel/framework v4.0.9
    - Conclusion: don't install laravel/framework v4.0.8
    - Conclusion: don't install laravel/framework v4.0.7
    - Conclusion: don't install laravel/framework v4.0.6
    - Conclusion: don't install laravel/framework v4.0.5
    - Conclusion: don't install laravel/framework v4.0.4
    - Conclusion: don't install laravel/framework v4.0.3
    - Conclusion: don't install laravel/framework v4.0.2
    - Conclusion: don't install laravel/framework v4.0.1
    - Conclusion: don't install laravel/framework v4.0.0
    - Installation request for zizaco/confide 3.0.x -satisfiable by zizaco/con fide[3.0.0].
    - Conclusion: don't install laravel/framework v4.0.0-BETA4
    - Conclusion: don't install laravel/framework v4.0.0-BETA3
    - zizaco/confide 3.0.0 requires illuminate/support 4.1.x -satisfiable by l aravel/framework[4.1.x-dev, v4.1.0, v4.1.1, v4.1.2,
v4.1.3, v4.1.4, v4.1.5, v4.1 .6, v4.1.7, v4.1.8, v4.1.9],
illuminate/support[4.1.x-dev, v4.1.0, v4.1.1, v4.1. 2, v4.1.3, v4.1.4,
v4.1.5, v4.1.6, v4.1.7, v4.1.8, v4.1.9].
    - Can only install one of: laravel/framework[v4.0.0-BETA2, 4.1.x-dev].
    - Can only install one of: laravel/framework[v4.1.0, v4.0.0-BETA2].
    - Can only install one of: laravel/framework[v4.1.1, v4.0.0-BETA2].
    - Can only install one of: laravel/framework[v4.1.2, v4.0.0-BETA2].
    - Can only install one of: laravel/framework[v4.1.3, v4.0.0-BETA2].
    - Can only install one of: laravel/framework[v4.1.4, v4.0.0-BETA2].
    - Can only install one of: laravel/framework[v4.1.5, v4.0.0-BETA2].
    - Can only install one of: laravel/framework[v4.1.6, v4.0.0-BETA2].
    - Can only install one of: laravel/framework[v4.1.7, v4.0.0-BETA2].
    - Can only install one of: laravel/framework[v4.1.8, v4.0.0-BETA2].
    - Can only install one of: laravel/framework[v4.1.9, v4.0.0-BETA2].
    - don't install illuminate/support 4.1.x-dev|don't install laravel/framework v4.0.0-BETA2
    - don't install illuminate/support 4.1.x-dev|don't install laravel/framework v4.0.0-BETA2
    - don't install illuminate/support v4.1.0|don't install laravel/framework v4 .0.0-BETA2
    - don't install illuminate/support v4.1.1|don't install laravel/framework v4 .0.0-BETA2
    - don't install illuminate/support v4.1.2|don't install laravel/framework v4 .0.0-BETA2
    - don't install illuminate/support v4.1.3|don't install laravel/framework v4 .0.0-BETA2
    - don't install illuminate/support v4.1.4|don't install laravel/framework v4 .0.0-BETA2
    - don't install illuminate/support v4.1.5|don't install laravel/framework v4 .0.0-BETA2
    - don't install illuminate/support v4.1.6|don't install laravel/framework v4 .0.0-BETA2
    - don't install illuminate/support v4.1.7|don't install laravel/framework v4 .0.0-BETA2
    - don't install illuminate/support v4.1.8|don't install laravel/framework v4 .0.0-BETA2
    - don't install illuminate/support v4.1.9|don't install laravel/framework v4 .0.0-BETA2
    - Installation request for laravel/framework 4.0.* -satisfiable by laravel /framework[4.0.x-dev, v4.0.0, v4.0.0-BETA2, v4.0.0-BETA3,
v4.0.0-BETA4, v4.0.1, v4.0.10, v4.0.2, v4.0.3, v4.0.4, v4.0.5, v4.0.6,
v4.0.7, v4.0.8, v4.0.9].


H:\WD SmartWare.swstor\HALEY-HP\Source\ATA\swafap>

我在 Zizaco confide 中查看了问题,这是一个问题,但据说他们大约在 2 天前解决了这个问题。

感谢您的帮助。

【问题讨论】:

即使在删除 zizaco 时它也会显示此错误.. 上周我运行 composer update 时它从未出现过.. 为什么单独需要illuminate/support,你有Laravel's full stack,去掉illuminate/support试试看。 有人建议添加它。我删除了它..仍然抛出错误。 我什至安装了一个新的 laravel,用新的替换了垃圾 composer.json 文件,它仍然抛出错误..这怎么可能?.. 你能更新composer,自我更新吗? 【参考方案1】:

你有这个

"require": 
    "laravel/framework": "4.0.*",  // <-- you have full stack in here
    "illuminate/support": "4.1.*", // <-- remove this line
    "teepluss/asset": "dev-master",
    "zizaco/confide": "3.0.x"
,

删除"illuminate/support": "4.1.*"composer update,或者如果没有帮助,请尝试升级到Laravel-4.1*。关注Upgrade Guide。

【讨论】:

你如何升级?...因为这并不能解决问题。我什至安装了一个新的 laravel,用新的替换了 composer.json 文件,它仍然是垃圾.. 也可以试试"zizaco/confide": "dev-master" 好的,我一步一步地按照这个步骤进行操作:laravel.com/docs/upgrade 并更新了它。然后我运行作曲家更新,它仍然打破.. 是的,我更新了作曲家,它工作得很好......我回到 laravel 4.1 中 composer.json 文件的准系统,它仍然抛出错误......以前不是这样我不明白:/ 您能否安装一个新的Laravel 项目以确保一切正常。

以上是关于laravel 包不安装照明/支持的主要内容,如果未能解决你的问题,请参考以下文章

laravel 8中根路径的问题使用照明

如何通过流明中的作曲家安装照明/邮件

为啥作曲家包不安装

安装 sanctum 时 Laravel Composer 错误:与合同冲突

Laravel 和 MongoDB 以及高级角色/权限系统

工匠中不提供照明/邮件