composer 安装 xhp-lib 超时
composer install xhp-lib timeout
我一直在尝试让 Composer 工作。我正在使用 Debian Jessie,我对 linux 和所有这些东西还很陌生。
所以,我已经下载并安装了 HHVM,一切正常。我创建了一个 json 文件,如下所示:
{
"require": {
"facebook/xhp-lib": "~2.2"
},
"config": {
"secure-http": false,
"process-timeout": 1800
}
}
我仍然得到这个结果 composer install
:
Loading composer repositories with package information
Updating dependencies (including require-dev)
SlowTimer [60000ms] at curl: http://packagist.org/p/provider-2014%246e256ac757a31949f2560c57b83ff57649232e226864f330c6556e4134ee5d52.json
The "http://packagist.org/p/provider-2014%246e256ac757a31949f2560c57b83ff57649232e226864f330c6556e4134ee5d52.json" file could not be downloaded: Failed to open http://packagist.org/p/provider-2014%246e256ac757a31949f2560c57b83ff57649232e226864f330c6556e4134ee5d52.json (Operation timed out after 59964 milliseconds with 636857 out of 857622 bytes received)
Retrying with degraded mode, check https://getcomposer.org/doc/articles/troubleshooting.md#degraded-mode for more info
SlowTimer [60001ms] at curl: http://87.98.253.214/p/provider-2014%246e256ac757a31949f2560c57b83ff57649232e226864f330c6556e4134ee5d52.json
SlowTimer [59999ms] at curl: http://87.98.253.214/p/provider-2014%246e256ac757a31949f2560c57b83ff57649232e226864f330c6556e4134ee5d52.json
SlowTimer [59999ms] at curl: http://87.98.253.214/p/provider-2014%246e256ac757a31949f2560c57b83ff57649232e226864f330c6556e4134ee5d52.json
[Composer\Downloader\TransportException]
The "http://packagist.org/p/provider-2014%246e256ac757a31949f2560c57b83ff57
649232e226864f330c6556e4134ee5d52.json" file could not be downloaded: Faile
d to open http://87.98.253.214/p/provider-2014%246e256ac757a31949f2560c57b8
3ff57649232e226864f330c6556e4134ee5d52.json (Operation timed out after 5967
4 milliseconds with 745452 out of 857622 bytes received)
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] [--] [<packages>]...
我有一个 10Mbps 的连接,但它似乎没有以 100% 的速度使用。我希望你们能帮助我。
PS:如果有其他方法可以将 XHP 集成到 HHVM,请告诉我,一定会尝试。
PS:抱歉英语不好。
所以我通过 HHVM 由 运行ning composer 实现了它。我不知道这是否对你有帮助,但对我有用。
请记住,我的错误是 由于连接问题 因此我得到了
[Composer\Downloader\TransportException] ... Operation timed out
将 HHVM 配置选项 ResourceLimit.SocketDefaultTimeout 和 Http.SlowQueryThreshold 强制设置为更高的值将帮助您做到这一点。
使用您喜欢的文本编辑器打开 ~/.bashrc sudo nano ~/.bashrc:
添加这一行:alias composer="hhvm -v ResourceLimit.SocketDefaultTimeout=180 -v Http.SlowQueryThreshold=300000 /usr/local/bin/composer"
- 保存并退出文件。
- 运行
source ~/.bashrc
.
然后 运行 为您的项目作曲。
PS: 这个别名有很高的价值,没花那么长时间所以请根据你的需要调整它。
我一直在尝试让 Composer 工作。我正在使用 Debian Jessie,我对 linux 和所有这些东西还很陌生。
所以,我已经下载并安装了 HHVM,一切正常。我创建了一个 json 文件,如下所示:
{
"require": {
"facebook/xhp-lib": "~2.2"
},
"config": {
"secure-http": false,
"process-timeout": 1800
}
}
我仍然得到这个结果 composer install
:
Loading composer repositories with package information
Updating dependencies (including require-dev)
SlowTimer [60000ms] at curl: http://packagist.org/p/provider-2014%246e256ac757a31949f2560c57b83ff57649232e226864f330c6556e4134ee5d52.json
The "http://packagist.org/p/provider-2014%246e256ac757a31949f2560c57b83ff57649232e226864f330c6556e4134ee5d52.json" file could not be downloaded: Failed to open http://packagist.org/p/provider-2014%246e256ac757a31949f2560c57b83ff57649232e226864f330c6556e4134ee5d52.json (Operation timed out after 59964 milliseconds with 636857 out of 857622 bytes received)
Retrying with degraded mode, check https://getcomposer.org/doc/articles/troubleshooting.md#degraded-mode for more info
SlowTimer [60001ms] at curl: http://87.98.253.214/p/provider-2014%246e256ac757a31949f2560c57b83ff57649232e226864f330c6556e4134ee5d52.json
SlowTimer [59999ms] at curl: http://87.98.253.214/p/provider-2014%246e256ac757a31949f2560c57b83ff57649232e226864f330c6556e4134ee5d52.json
SlowTimer [59999ms] at curl: http://87.98.253.214/p/provider-2014%246e256ac757a31949f2560c57b83ff57649232e226864f330c6556e4134ee5d52.json
[Composer\Downloader\TransportException]
The "http://packagist.org/p/provider-2014%246e256ac757a31949f2560c57b83ff57
649232e226864f330c6556e4134ee5d52.json" file could not be downloaded: Faile
d to open http://87.98.253.214/p/provider-2014%246e256ac757a31949f2560c57b8
3ff57649232e226864f330c6556e4134ee5d52.json (Operation timed out after 5967
4 milliseconds with 745452 out of 857622 bytes received)
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] [--] [<packages>]...
我有一个 10Mbps 的连接,但它似乎没有以 100% 的速度使用。我希望你们能帮助我。
PS:如果有其他方法可以将 XHP 集成到 HHVM,请告诉我,一定会尝试。
PS:抱歉英语不好。
所以我通过 HHVM 由 运行ning composer 实现了它。我不知道这是否对你有帮助,但对我有用。
请记住,我的错误是 由于连接问题 因此我得到了
[Composer\Downloader\TransportException] ... Operation timed out
将 HHVM 配置选项 ResourceLimit.SocketDefaultTimeout 和 Http.SlowQueryThreshold 强制设置为更高的值将帮助您做到这一点。
使用您喜欢的文本编辑器打开 ~/.bashrc
sudo nano ~/.bashrc:
添加这一行:
alias composer="hhvm -v ResourceLimit.SocketDefaultTimeout=180 -v Http.SlowQueryThreshold=300000 /usr/local/bin/composer"
- 保存并退出文件。
- 运行
source ~/.bashrc
.
然后 运行 为您的项目作曲。
PS: 这个别名有很高的价值,没花那么长时间所以请根据你的需要调整它。