我试图在本地系统中安装Laravel,我收到错误.
操作系统:ubuntu 12.04 LTS
网络服务器:Nginx
PHP:PHP 5.3.10
步骤1 :
$ git clone https://github.com/laravel/laravel.git my_project
Run Code Online (Sandbox Code Playgroud)
第2步 :
my_project$ composer install
Run Code Online (Sandbox Code Playgroud)
我收到了以下错误.
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.
Run Code Online (Sandbox Code Playgroud)
打开composer.json文件并将框架版本更改为以下内容:
"laravel/framework": "4.0.*"
Run Code Online (Sandbox Code Playgroud)
代替
"laravel/framework": "4.2.*"
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
23252 次 |
| 最近记录: |