我已经将我的Laravel项目克隆到我的远程服务器,并试图通过运行composer update
来获取所需的软件包。
此操作始终失败,并显示以下错误:
您的要求无法解析为一组可安装的软件包。
其次:
Problem 1
- Conclusion: don't install laravel/framework 4.1.x-dev
- Conclusion: don't install laravel/framework v4.1.24
- Conclusion: don't install laravel/framework v4.1.23
- Conclusion: don't install laravel/framework v4.1.22
- Conclusion: don't install laravel/framework v4.1.21
- Conclusion: don't install laravel/framework v4.1.20
- Conclusion: don't install laravel/framework v4.1.19
- Conclusion: don't install laravel/framework v4.1.18
- Conclusion: don't install laravel/framework v4.1.17
- Conclusion: don't install laravel/framework v4.1.16
- Conclusion: don't install laravel/framework v4.1.15
- Conclusion: don't install laravel/framework v4.1.14
- Conclusion: don't install laravel/framework v4.1.13
- Conclusion: don't install laravel/framework v4.1.12
- Conclusion: don't install laravel/framework v4.1.11
- Conclusion: don't install laravel/framework v4.1.10
- Conclusion: don't install laravel/framework v4.1.9
- Conclusion: don't install laravel/framework v4.1.8
- Conclusion: don't install laravel/framework v4.1.7
- Conclusion: don't install laravel/framework v4.1.6
- Conclusion: don't install laravel/framework v4.1.5
- Conclusion: don't install laravel/framework v4.1.4
- Conclusion: don't install laravel/framework v4.1.3
- Installation request for way/generators 1.0.*@dev -> satisfiable by way/generators[1.0].
- Conclusion: don't install laravel/framework v4.1.2
- Conclusion: don't install laravel/framework v4.1.1
- way/generators 1.0 requires illuminate/filesystem 4.0.x -> satisfiable by laravel/framework[4.0.x-dev], illuminate/filesystem[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].
- Can only install one of: laravel/framework[v4.1.0, 4.0.x-dev].
- don't install illuminate/filesystem 4.0.x-dev|don't install laravel/framework v4.1.0
- don't install illuminate/filesystem v4.0.0|don't install laravel/framework v4.1.0
- don't install illuminate/filesystem v4.0.0-BETA2|don't install laravel/framework v4.1.0
- don't install illuminate/filesystem v4.0.0-BETA3|don't install laravel/framework v4.1.0
- don't install illuminate/filesystem v4.0.0-BETA4|don't install laravel/framework v4.1.0
- don't install illuminate/filesystem v4.0.1|don't install laravel/framework v4.1.0
- don't install illuminate/filesystem v4.0.10|don't install laravel/framework v4.1.0
- don't install illuminate/filesystem v4.0.2|don't install laravel/framework v4.1.0
- don't install illuminate/filesystem v4.0.3|don't install laravel/framework v4.1.0
- don't install illuminate/filesystem v4.0.4|don't install laravel/framework v4.1.0
- don't install illuminate/filesystem v4.0.5|don't install laravel/framework v4.1.0
- don't install illuminate/filesystem v4.0.6|don't install laravel/framework v4.1.0
- don't install illuminate/filesystem v4.0.7|don't install laravel/framework v4.1.0
- don't install illuminate/filesystem v4.0.8|don't install laravel/framework v4.1.0
- don't install illuminate/filesystem v4.0.9|don't install laravel/framework v4.1.0
- Installation request for laravel/framework 4.1.* -> satisfiable by laravel/framework[4.1.x-dev, v4.1.0, v4.1.1, v4.1.10, v4.1.11, v4.1.12, v4.1.13, v4.1.14, v4.1.15, v4.1.16, v4.1.17, v4.1.18, v4.1.19, v4.1.2, v4.1.20, v4.1.21, v4.1.22, v4.1.23, v4.1.24, v4.1.3, v4.1.4, v4.1.5, v4.1.6, v4.1.7, v4.1.8, v4.1.9].
我的 composer.json 需要的是:如下所示:
"require": {
"laravel/framework": "4.1.*",
"way/generators": "1.0.*@dev",
"loic-sharma/profiler": "dev-master",
"zizaco/confide": "3.2.x"
},
有什么想法如何解决吗?更新命令在我的 Mac 上工作正常。
文本告诉您不能将Laravel 4.1.*与way/generators 1.0.*@dev
一起使用,因为该软件仍然需要Laravel 4.0.*。
所以现在你必须决定:你需要Laravel 4.1吗?然后,您必须找到与之配合使用的way/generators
版本。否则降级到Laravel 4.0。
如果 update 命令在某些计算机上有效,则另一台计算机可能没有可能需要的某些 PHP 扩展,或者正在运行不同的 PHP 版本。您可以尝试更新Mac上的软件包,上传composer.lock
文件,然后仅安装。如果您有测试或开发环境,通常不建议在生产中更新。更新很可能不会安装您开发和测试的相同版本。