当我的 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/