在
packagist.org
上新提交了一個包以後,一直
composer require
不到資源。
不知道需要等待多久才能composer
到?
# 以下為調試資訊D:\ubuntu_share\composer\hello>php d:\bin\composer require pangou/hello-world -vvvYou are running composer with xdebug enabled. This has a major impact on runtime performance. See https://getcomposer.org/xdebugReading ./composer.jsonLoading config file ./composer.jsonExecuting command (D:\ubuntu_share\composer\hello): git describe --exact-match --tagsExecuting command (D:\ubuntu_share\composer\hello): git branch --no-color --no-abbrev -vExecuting command (D:\ubuntu_share\composer\hello): hg branchExecuting command (D:\ubuntu_share\composer\hello): svn info --xmlFailed to initialize global composer: Composer could not find the config file: C:/Users/Administrator/AppData/Roaming/Composer/composer.jsonTo initialize a project, please create a composer.json file as described in the https://getcomposer.org/ "Getting Started" sectionDownloading https://packagist.org/packages.jsonWriting C:/Users/Administrator/AppData/Local/Composer/repo/https---packagist.org/packages.json into cacheReading C:/Users/Administrator/AppData/Local/Composer/repo/https---packagist.org/p-provider-2013.json from cacheReading C:/Users/Administrator/AppData/Local/Composer/repo/https---packagist.org/p-provider-2014.json from cacheDownloading http://packagist.org/p/provider-2015%24892cc7113cf0f30cc0db27a2d8cb45584c7881e7247ba2fe2b580366302ce653.jsonWriting C:/Users/Administrator/AppData/Local/Composer/repo/https---packagist.org/p-provider-2015.json into cacheReading C:/Users/Administrator/AppData/Local/Composer/repo/https---packagist.org/p-provider-2015-04.json from cacheDownloading http://packagist.org/p/provider-2015-07%24ff67e834038a3d373daa2428f5e6fdaf7e02a21ddb8b02e8f95c6761b38e22a8.jsonWriting C:/Users/Administrator/AppData/Local/Composer/repo/https---packagist.org/p-provider-2015-07.json into cacheDownloading http://packagist.org/p/provider-2015-10%24f3055c2306df02385f88e9b3494ffeed8b5499d9d14c6db9ce8ae2d6861fecd7.jsonWriting C:/Users/Administrator/AppData/Local/Composer/repo/https---packagist.org/p-provider-2015-10.json into cacheReading C:/Users/Administrator/AppData/Local/Composer/repo/https---packagist.org/p-provider-2016-01.json from cacheReading C:/Users/Administrator/AppData/Local/Composer/repo/https---packagist.org/p-provider-archived.json from cacheDownloading http://packagist.org/p/provider-latest%24878f7537ca276f1260dbb3f72297457eeeda58d6e92027dec978955a622e5757.jsonWriting C:/Users/Administrator/AppData/Local/Composer/repo/https---packagist.org/p-provider-latest.json into cacheReading 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-stabilityException 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:25require [--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] [--] []...
回複內容:
在packagist.org
上新提交了一個包以後,一直composer require
不到資源。
不知道需要等待多久才能composer
到?
# 以下為調試資訊D:\ubuntu_share\composer\hello>php d:\bin\composer require pangou/hello-world -vvvYou are running composer with xdebug enabled. This has a major impact on runtime performance. See https://getcomposer.org/xdebugReading ./composer.jsonLoading config file ./composer.jsonExecuting command (D:\ubuntu_share\composer\hello): git describe --exact-match --tagsExecuting command (D:\ubuntu_share\composer\hello): git branch --no-color --no-abbrev -vExecuting command (D:\ubuntu_share\composer\hello): hg branchExecuting command (D:\ubuntu_share\composer\hello): svn info --xmlFailed to initialize global composer: Composer could not find the config file: C:/Users/Administrator/AppData/Roaming/Composer/composer.jsonTo initialize a project, please create a composer.json file as described in the https://getcomposer.org/ "Getting Started" sectionDownloading https://packagist.org/packages.jsonWriting C:/Users/Administrator/AppData/Local/Composer/repo/https---packagist.org/packages.json into cacheReading C:/Users/Administrator/AppData/Local/Composer/repo/https---packagist.org/p-provider-2013.json from cacheReading C:/Users/Administrator/AppData/Local/Composer/repo/https---packagist.org/p-provider-2014.json from cacheDownloading http://packagist.org/p/provider-2015%24892cc7113cf0f30cc0db27a2d8cb45584c7881e7247ba2fe2b580366302ce653.jsonWriting C:/Users/Administrator/AppData/Local/Composer/repo/https---packagist.org/p-provider-2015.json into cacheReading C:/Users/Administrator/AppData/Local/Composer/repo/https---packagist.org/p-provider-2015-04.json from cacheDownloading http://packagist.org/p/provider-2015-07%24ff67e834038a3d373daa2428f5e6fdaf7e02a21ddb8b02e8f95c6761b38e22a8.jsonWriting C:/Users/Administrator/AppData/Local/Composer/repo/https---packagist.org/p-provider-2015-07.json into cacheDownloading http://packagist.org/p/provider-2015-10%24f3055c2306df02385f88e9b3494ffeed8b5499d9d14c6db9ce8ae2d6861fecd7.jsonWriting C:/Users/Administrator/AppData/Local/Composer/repo/https---packagist.org/p-provider-2015-10.json into cacheReading C:/Users/Administrator/AppData/Local/Composer/repo/https---packagist.org/p-provider-2016-01.json from cacheReading C:/Users/Administrator/AppData/Local/Composer/repo/https---packagist.org/p-provider-archived.json from cacheDownloading http://packagist.org/p/provider-latest%24878f7537ca276f1260dbb3f72297457eeeda58d6e92027dec978955a622e5757.jsonWriting C:/Users/Administrator/AppData/Local/Composer/repo/https---packagist.org/p-provider-latest.json into cacheReading 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-stabilityException 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:25require [--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] [--] []...
剛好前2天建了個packagist,提交成功後就可以安裝了,見http://segmentfault.com/a/1190000004294540
提交好馬上就可以了,因為你在安裝的時候他會去檢索的