php - 尝试从 toran 获取所需的私有(private)库时 Composer 警告

标签 php composer-php require packagist toran-proxy

当我的 Composer 试图从 toran 获取私有(private)库时,我收到此警告:

Warning from https://toran.dev.lan/repo/packagist: The original providers could not be fetched

运行 composer require app/client:^6.0 得到:

user@u:~/Projects/app$ composer require app/client:^6.0
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Warning from https://toran.dev.lan/repo/packagist: The original providers could not be fetched
Warning from https://toran.dev.lan/repo/packagist: The original providers could not be fetched

运行 composer require app/client:^6.0 -vvv 给出:

Downloading https://toran.dev.lan/repo/packagist/p/app/accounting-common.json
Warning from https://toran.dev.lan/repo/packagist: The original
providers could not be fetched

Writing /home/user/.composer/cache/repo/https---toran.dev.lan-repo-packagist/provider-app$accounting-common.json into cache

Downloading https://toran.dev.lan/repo/packagist/p/app/php-amqplib-extension.json
Warning from https://toran.dev.lan/repo/packagist: The original providers could not be fetched
Writing /home/user/.composer/cache/repo/https---toran.dev.lan-repo-packagist/provider-app$php-amqplib-extension.json into cache

Downloading https://toran.dev.lan/repo/packagist/p/app/lib-symfony-components.json
Warning from https://toran.dev.lan/repo/packagist: The original providers could not be fetched
Writing /home/user/.composer/cache/repo/https---toran.dev.lan-repo-packagist/provider-app$lib-symfony-components.json into cache

Downloading https://toran.dev.lan/repo/packagist/p/app/lib-dependency-injection.json
Warning from https://toran.dev.lan/repo/packagist: The original providers could not be fetched
Writing /home/user/.composer/cache/repo/https---toran.dev.lan-repo-packagist/provider-app$lib-dependency-injection.json into cache

Downloading https://toran.dev.lan/repo/packagist/p/app/rabbitmq-extension-bundle.json
Warning from https://toran.dev.lan/repo/packagist: The original providers could not be fetched
Writing /home/user/.composer/cache/repo/https---toran.dev.lan-repo-packagist/provider-app$rabbitmq-extension-bundle.json into cache

为什么我会收到此警告?

最佳答案

看来是php版本的问题,项目是5.6的,我本地的php版本是7.0。我还必须从使用 docker 的项目容器启动 composer require 才能正常工作。

关于php - 尝试从 toran 获取所需的私有(private)库时 Composer 警告,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42830677/

相关文章:

php - 需要UTF-8 php文件

javascript - Node.js 需要继承吗?

php - 检查日期是否晚于当前日期

php - 需要帮助在电子邮件中发送 MySQL 表信息

php - 安装包时向 .env 添加新的环境变量

php - OSX Composer 增加内存限制

使用wordpress函数get_terms时出现php错误

php - 从两个表中选择并从两个表中检查 'Friend lists'

php - Composer 安装在 Laravel 5 上崩溃(仅限生产环境)

javascript - JSDoc 在 VSCode 中的 `exports.default` 处损坏?