在xampp上安装Laravel框架失败


Laravel framework install failed on xampp

嗨伙计们,当我安装laravel框架与作曲家我有两个错误。我怎么解决这个问题?提前感谢!

composer global require "laravel/installer=~1.1"

错误:

 [RuntimeException]                                                                                                                                               

       Could not load package laravel/framework in http://packagist.org: 
    [UnexpectedValueException] 
        Could not parse version constraint ^1.0.4: Invalid version string "^1.0.4"

. .

  [UnexpectedValueException]                                                  
  Could not parse version constraint ^1.0.4: Invalid version string "^1.0.4"  
* *

**Edited :**
composer diagnose
Checking composer.json: FAIL
name : The property name is required
description : The property description is required
No license specified, it is recommended to do so. For closed-source software you may use "proprietary" as license.
Checking platform settings: OK
Checking git settings: OK
Checking http connectivity to packagist: OK
Checking https connectivity to packagist: OK
Checking github.com rate limit: OK
Checking disk free space: OK
Checking composer version: OK
* *

使用下面的命令安装指定版本的新laravel项目

composer create-project laravel/laravel your_project_name 4.2.* 
这里的

4.2。*是版本

编辑:

更新编曲器

您可以使用以下命令:

composer self-update

,然后创建如下项目:

composer create-project laravel/laravel {you-project-name} 4.2 --prefer-dist