无法使用composer安装Laravel4依赖项

时间:2013-04-18 10:32:31

标签: php composer-php

我尝试按照https://github.com/brunogaspar/laravel4-starter-kit中的说明安装laravel4。

在下载部分之后,我尝试执行第2部分,其中包含:

    cd your-folder
    curl -s http://getcomposer.org/installer | php
    php composer.phar install

当我运行最后一个命令时:

    php composer.phar install

我得到了输出:

Loading composer repositories with package information
 Installing dependencies
 - Installing doctrine/lexer (dev-master bc0e1f0)
   Cloning bc0e1f0cc285127a38c6c8ea88bc5dba2fd53e94
 - Installing doctrine/annotations (v1.1)
Downloading:connection...                                                              
 [Composer\Downloader\TransportException]                                     
 The "https://api.github.com/repos/doctrine/annotations/zipball/v1.1" file could not 
 be downloaded (HTTP/1.0 500 Internal Server Error)                                    
install [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-dev]
[--no-custom-installers] [--no-scripts] [--no-progress] [-v|--verbose] 
[-o|--optimize-autoloader]

知道我为什么会收到这个错误吗?

1 个答案:

答案 0 :(得分:1)

重新启动相同的命令:

php composer.phar install