在packagist.org上新提交了一個包,多久能夠composer到?

來源:互聯網
上載者:User
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

提交好馬上就可以了,因為你在安裝的時候他會去檢索的

  • 相關文章

    聯繫我們

    該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

    如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.