Laravel:您的要求无法解决为一组可安装的软件包 [英] Laravel : Your requirements could not be resolved to an installable set of packages
本文介绍了Laravel:您的要求无法解决为一组可安装的软件包的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试在本地系统中安装Laravel,但出现错误.
I am trying to install Laravel in local system and i am getting error.
操作系统:ubuntu 12.04 LTS
OS : ubuntu 12.04 LTS
Web服务器:Nginx
Webserver : Nginx
PHP:PHP 5.3.10
PHP : PHP 5.3.10
第1步:
$ git clone https://github.com/laravel/laravel.git my_project
第二步:
my_project$ composer install
我遇到以下错误.
Loading composer repositories with package information
Installing dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.
Problem 1
- laravel/framework v4.2.1 requires php >=5.4.0 -> no matching package found.
- laravel/framework v4.2.0 requires php >=5.4.0 -> no matching package found.
- Installation request for laravel/framework 4.2.* -> satisfiable by laravel/framework[v4.2.0, v4.2.1].
Potential causes:
- A typo in the package name
- The package is not available in a stable-enough version according to your minimum-stability setting
see <https://groups.google.com/d/topic/composer-dev/_g3ASeIFlrc/discussion> for more details.
Read <http://getcomposer.org/doc/articles/troubleshooting.md> for further common problems.
推荐答案
打开composer.json文件并将框架版本更改为以下版本:
Open your composer.json file and change framework version to the following:
"laravel/framework": "4.0.*"
代替
"laravel/framework": "4.2.*"
这篇关于Laravel:您的要求无法解决为一组可安装的软件包的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文