yuansir / laravel5-rbac-example

RBAC Example By Laravel5.2
261 stars 97 forks source link

composer install超时 #4

Closed ghost closed 8 years ago

ghost commented 8 years ago
Downloading: Connecting...    Downloading: Connecting...    Downloading: Connecting...    Failed to download doctrine/common from dist: Your configuration does not allow connections to http://packagist.phpcomposer.com/files/doctrine/common/a579557bc689580c19fee4e27487a67fe60defc0.zip. See https://getcomposer.org/doc/06-config.md#secure-http for details.
Now trying to download from source

install [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-dev] [--no-plugins] [--no-custom-installers] [--no-autoloader] [--no-scripts] [--no-progress] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--ignore-platform-reqs] [--] []...

yuansir commented 8 years ago

我试了下没有问题,用代理,或者说你代理有问题,试试 http://pkg.phpcomposer.com/

cnyoungman commented 8 years ago

Installing psy/psysh (v0.6.1) Downloading: Connecting... Downloading: Connecting... Downloading: Connecting... Failed to download psy/psysh from dist: Your configuration does not allow connections to http://packagist.phpcomposer.com/files/bobthecow/psysh/0f04df0b23663799a8941fae13cd8e6299bde3ed.zip. See https://getcomposer.org/doc/06-config.md#secure-http for details. Now trying to download from source

install [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-dev] [--no-plugins] [--no-custom-installers] [--no-autoloader] [--no-scripts] [--no-progress] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--ignore-platform-reqs] [--] []...

我install 的时候超时 使用代理页一样, 亲 这是因为啥啊

u0hz commented 8 years ago

composer要求使用https 修改 composer 的全局配置文件(推荐方式) 打开命令行窗口(windows用户)或控制台(Linux、Mac 用户)并执行如下命令: composer config -g repo.packagist composer https://packagist.phpcomposer.com

OR

composer.json -> config -> "secure-http": false