検索
ホームページバックエンド開発PHPチュートリアル在packagist.org上新提交了一个包,多久能够composer到?

packagist.org上新提交了一个包以后,一直composer require不到资源。

不知道需要等待多久才能composer到?

<code># 以下为调试信息

D:\ubuntu_share\composer\hello>php d:\bin\composer require pangou/hello-world -vvv
You are running composer with xdebug enabled. This has a major impact on runtime performance. See https://getcomposer.org/xdebug
Reading ./composer.json
Loading config file ./composer.json
Executing command (D:\ubuntu_share\composer\hello): git describe --exact-match --tags
Executing command (D:\ubuntu_share\composer\hello): git branch --no-color --no-abbrev -v
Executing command (D:\ubuntu_share\composer\hello): hg branch
Executing command (D:\ubuntu_share\composer\hello): svn info --xml
Failed to initialize global composer: Composer could not find the config file: C:/Users/Administrator/AppData/Roaming/Composer/composer.json
To initialize a project, please create a composer.json file as described in the https://getcomposer.org/ "Getting Started" section
Downloading https://packagist.org/packages.json
Writing C:/Users/Administrator/AppData/Local/Composer/repo/https---packagist.org/packages.json into cache
Reading C:/Users/Administrator/AppData/Local/Composer/repo/https---packagist.org/p-provider-2013.json from cache
Reading C:/Users/Administrator/AppData/Local/Composer/repo/https---packagist.org/p-provider-2014.json from cache
Downloading http://packagist.org/p/provider-2015%24892cc7113cf0f30cc0db27a2d8cb45584c7881e7247ba2fe2b580366302ce653.json
Writing C:/Users/Administrator/AppData/Local/Composer/repo/https---packagist.org/p-provider-2015.json into cache
Reading C:/Users/Administrator/AppData/Local/Composer/repo/https---packagist.org/p-provider-2015-04.json from cache
Downloading http://packagist.org/p/provider-2015-07%24ff67e834038a3d373daa2428f5e6fdaf7e02a21ddb8b02e8f95c6761b38e22a8.json
Writing C:/Users/Administrator/AppData/Local/Composer/repo/https---packagist.org/p-provider-2015-07.json into cache
Downloading http://packagist.org/p/provider-2015-10%24f3055c2306df02385f88e9b3494ffeed8b5499d9d14c6db9ce8ae2d6861fecd7.json
Writing C:/Users/Administrator/AppData/Local/Composer/repo/https---packagist.org/p-provider-2015-10.json into cache
Reading C:/Users/Administrator/AppData/Local/Composer/repo/https---packagist.org/p-provider-2016-01.json from cache
Reading C:/Users/Administrator/AppData/Local/Composer/repo/https---packagist.org/p-provider-archived.json from cache
Downloading http://packagist.org/p/provider-latest%24878f7537ca276f1260dbb3f72297457eeeda58d6e92027dec978955a622e5757.json
Writing C:/Users/Administrator/AppData/Local/Composer/repo/https---packagist.org/p-provider-latest.json into cache
Reading C:/Users/Administrator/AppData/Local/Composer/repo/https---packagist.org/provider-pangou$hello-world.json from cache


  [InvalidArgumentException]
  Could not find package pangou/hello-world at any version for your minimum-stability (stable). Check the package spelling or your minimum-stability


Exception trace:
 () at phar://D:/bin/composer/src/Composer/Command/InitCommand.php:605
 Composer\Command\InitCommand->findBestVersionForPackage() at phar://D:/bin/composer/src/Composer/Command/InitCommand.php:334
 Composer\Command\InitCommand->determineRequirements() at phar://D:/bin/composer/src/Composer/Command/RequireCommand.php:107
 Composer\Command\RequireCommand->execute() at phar://D:/bin/composer/vendor/symfony/console/Command/Command.php:259
 Symfony\Component\Console\Command\Command->run() at phar://D:/bin/composer/vendor/symfony/console/Application.php:840
 Symfony\Component\Console\Application->doRunCommand() at phar://D:/bin/composer/vendor/symfony/console/Application.php:192
 Symfony\Component\Console\Application->doRun() at phar://D:/bin/composer/src/Composer/Console/Application.php:167
 Composer\Console\Application->doRun() at phar://D:/bin/composer/vendor/symfony/console/Application.php:123
 Symfony\Component\Console\Application->run() at phar://D:/bin/composer/src/Composer/Console/Application.php:98
 Composer\Console\Application->run() at phar://D:/bin/composer/bin/composer:43
 require() at D:\bin\composer:25

require [--dev] [--prefer-source] [--prefer-dist] [--no-progress] [--no-update] [--update-no-dev] [--update-with-dependencies] [--ignore-platform-reqs] [--sort-packages] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--] [<packages>]...</packages></code>

回复内容:

packagist.org上新提交了一个包以后,一直composer require不到资源。

不知道需要等待多久才能composer到?

<code># 以下为调试信息

D:\ubuntu_share\composer\hello>php d:\bin\composer require pangou/hello-world -vvv
You are running composer with xdebug enabled. This has a major impact on runtime performance. See https://getcomposer.org/xdebug
Reading ./composer.json
Loading config file ./composer.json
Executing command (D:\ubuntu_share\composer\hello): git describe --exact-match --tags
Executing command (D:\ubuntu_share\composer\hello): git branch --no-color --no-abbrev -v
Executing command (D:\ubuntu_share\composer\hello): hg branch
Executing command (D:\ubuntu_share\composer\hello): svn info --xml
Failed to initialize global composer: Composer could not find the config file: C:/Users/Administrator/AppData/Roaming/Composer/composer.json
To initialize a project, please create a composer.json file as described in the https://getcomposer.org/ "Getting Started" section
Downloading https://packagist.org/packages.json
Writing C:/Users/Administrator/AppData/Local/Composer/repo/https---packagist.org/packages.json into cache
Reading C:/Users/Administrator/AppData/Local/Composer/repo/https---packagist.org/p-provider-2013.json from cache
Reading C:/Users/Administrator/AppData/Local/Composer/repo/https---packagist.org/p-provider-2014.json from cache
Downloading http://packagist.org/p/provider-2015%24892cc7113cf0f30cc0db27a2d8cb45584c7881e7247ba2fe2b580366302ce653.json
Writing C:/Users/Administrator/AppData/Local/Composer/repo/https---packagist.org/p-provider-2015.json into cache
Reading C:/Users/Administrator/AppData/Local/Composer/repo/https---packagist.org/p-provider-2015-04.json from cache
Downloading http://packagist.org/p/provider-2015-07%24ff67e834038a3d373daa2428f5e6fdaf7e02a21ddb8b02e8f95c6761b38e22a8.json
Writing C:/Users/Administrator/AppData/Local/Composer/repo/https---packagist.org/p-provider-2015-07.json into cache
Downloading http://packagist.org/p/provider-2015-10%24f3055c2306df02385f88e9b3494ffeed8b5499d9d14c6db9ce8ae2d6861fecd7.json
Writing C:/Users/Administrator/AppData/Local/Composer/repo/https---packagist.org/p-provider-2015-10.json into cache
Reading C:/Users/Administrator/AppData/Local/Composer/repo/https---packagist.org/p-provider-2016-01.json from cache
Reading C:/Users/Administrator/AppData/Local/Composer/repo/https---packagist.org/p-provider-archived.json from cache
Downloading http://packagist.org/p/provider-latest%24878f7537ca276f1260dbb3f72297457eeeda58d6e92027dec978955a622e5757.json
Writing C:/Users/Administrator/AppData/Local/Composer/repo/https---packagist.org/p-provider-latest.json into cache
Reading C:/Users/Administrator/AppData/Local/Composer/repo/https---packagist.org/provider-pangou$hello-world.json from cache


  [InvalidArgumentException]
  Could not find package pangou/hello-world at any version for your minimum-stability (stable). Check the package spelling or your minimum-stability


Exception trace:
 () at phar://D:/bin/composer/src/Composer/Command/InitCommand.php:605
 Composer\Command\InitCommand->findBestVersionForPackage() at phar://D:/bin/composer/src/Composer/Command/InitCommand.php:334
 Composer\Command\InitCommand->determineRequirements() at phar://D:/bin/composer/src/Composer/Command/RequireCommand.php:107
 Composer\Command\RequireCommand->execute() at phar://D:/bin/composer/vendor/symfony/console/Command/Command.php:259
 Symfony\Component\Console\Command\Command->run() at phar://D:/bin/composer/vendor/symfony/console/Application.php:840
 Symfony\Component\Console\Application->doRunCommand() at phar://D:/bin/composer/vendor/symfony/console/Application.php:192
 Symfony\Component\Console\Application->doRun() at phar://D:/bin/composer/src/Composer/Console/Application.php:167
 Composer\Console\Application->doRun() at phar://D:/bin/composer/vendor/symfony/console/Application.php:123
 Symfony\Component\Console\Application->run() at phar://D:/bin/composer/src/Composer/Console/Application.php:98
 Composer\Console\Application->run() at phar://D:/bin/composer/bin/composer:43
 require() at D:\bin\composer:25

require [--dev] [--prefer-source] [--prefer-dist] [--no-progress] [--no-update] [--update-no-dev] [--update-with-dependencies] [--ignore-platform-reqs] [--sort-packages] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--] [<packages>]...</packages></code>

刚好前2天建了个packagist,提交成功后就可以安装了,见http://segmentfault.com/a/1190000004294540

提交好马上就可以了,因为你在安装的时候他会去检索的

声明
この記事の内容はネチズンが自主的に寄稿したものであり、著作権は原著者に帰属します。このサイトは、それに相当する法的責任を負いません。盗作または侵害の疑いのあるコンテンツを見つけた場合は、admin@php.cn までご連絡ください。
トラフィックの高いウェブサイトのPHPパフォーマンスチューニングトラフィックの高いウェブサイトのPHPパフォーマンスチューニングMay 14, 2025 am 12:13 AM

thesecrettokeepingaphp-poweredwebsterunningsmootlyunderheavyloadinvolvesseveralkeystrategies:1)emform opcodecoduceSciptionexecutiontime、2)aatabasequerycachingwithiThing withiThistolessendavasoload、

PHPでの依存関係注射:初心者向けのコード例PHPでの依存関係注射:初心者向けのコード例May 14, 2025 am 12:08 AM

コードをより明確かつ維持しやすくするため、依存関係が関心(DI)に注意する必要があります。 1)DIは、クラスを切り離すことにより、よりモジュール化されます。2)テストとコードの柔軟性の利便性を向上させ、3)DIコンテナを使用して複雑な依存関係を管理しますが、パフォーマンスの影響と円形の依存関係に注意してください。

PHPパフォーマンス:アプリケーションを最適化することは可能ですか?PHPパフォーマンス:アプリケーションを最適化することは可能ですか?May 14, 2025 am 12:04 AM

はい、最適化されたAphPossibleandessention.1)CachingingusapCutoredatedAtabaseload.2)最適化、効率的なQueries、およびConnectionPooling.3)EnhcodeCodewithBultinctions、Avoididingglobalbariables、およびUsingopcodeching

PHPパフォーマンスの最適化:究極のガイドPHPパフォーマンスの最適化:究極のガイドMay 14, 2025 am 12:02 AM

keyStrategIestsoSificlyvoostphpappliceperformanceare:1)useopcodecachinglikeToreexecutiontime、2)最適化abaseの相互作用とプロペラインデックス、3)3)構成

PHP依存性噴射コンテナ:クイックスタートPHP依存性噴射コンテナ:クイックスタートMay 13, 2025 am 12:11 AM

aphpDependencyInjectionContaineriSATOULTAINATINAGECLASSDEPTINCIES、強化測定性、テスト可能性、および維持可能性。

PHPの依存噴射対サービスロケーターPHPの依存噴射対サービスロケーターMay 13, 2025 am 12:10 AM

SELECT DEPENTENCINGINOFCENT(DI)大規模なアプリケーションの場合、ServicElocatorは小さなプロジェクトまたはプロトタイプに適しています。 1)DIは、コンストラクターインジェクションを通じてコードのテスト可能性とモジュール性を改善します。 2)ServiceLocatorは、センター登録を通じてサービスを取得します。これは便利ですが、コードカップリングの増加につながる可能性があります。

PHPパフォーマンス最適化戦略。PHPパフォーマンス最適化戦略。May 13, 2025 am 12:06 AM

phpapplicationscanbeoptimizedforspeedandEfficiencyby:1)enabingopcacheinphp.ini、2)PreparedStatementswithpordatabasequeriesを使用して、3)LoopswithArray_filterandarray_mapfordataprocessing、4)の構成ngincasaSearverseproxy、5)

PHPメールの検証:電子メールが正しく送信されるようにしますPHPメールの検証:電子メールが正しく送信されるようにしますMay 13, 2025 am 12:06 AM

PHPemailvalidationinvolvesthreesteps:1)Formatvalidationusingregularexpressionstochecktheemailformat;2)DNSvalidationtoensurethedomainhasavalidMXrecord;3)SMTPvalidation,themostthoroughmethod,whichchecksifthemailboxexistsbyconnectingtotheSMTPserver.Impl

See all articles

ホットAIツール

Undresser.AI Undress

Undresser.AI Undress

リアルなヌード写真を作成する AI 搭載アプリ

AI Clothes Remover

AI Clothes Remover

写真から衣服を削除するオンライン AI ツール。

Undress AI Tool

Undress AI Tool

脱衣画像を無料で

Clothoff.io

Clothoff.io

AI衣類リムーバー

Video Face Swap

Video Face Swap

完全無料の AI 顔交換ツールを使用して、あらゆるビデオの顔を簡単に交換できます。

ホットツール

SublimeText3 Linux 新バージョン

SublimeText3 Linux 新バージョン

SublimeText3 Linux 最新バージョン

MantisBT

MantisBT

Mantis は、製品の欠陥追跡を支援するために設計された、導入が簡単な Web ベースの欠陥追跡ツールです。 PHP、MySQL、Web サーバーが必要です。デモおよびホスティング サービスをチェックしてください。

ゼンドスタジオ 13.0.1

ゼンドスタジオ 13.0.1

強力な PHP 統合開発環境

SAP NetWeaver Server Adapter for Eclipse

SAP NetWeaver Server Adapter for Eclipse

Eclipse を SAP NetWeaver アプリケーション サーバーと統合します。

VSCode Windows 64 ビットのダウンロード

VSCode Windows 64 ビットのダウンロード

Microsoft によって発売された無料で強力な IDE エディター