php - Composer package not found with custom packages.json -
php - Composer package not found with custom packages.json -
i have custom packages.json file contains following:
{ "packages": { "dtcmedia/wordpress": { "3.9.1": { "name": "dtcmedia/wordpress", "version": "3.9.1", "version_normalized": "3.9.1.0", "source": { "type": "git", "url": "https://github.com/wordpress/wordpress", "reference": "3.9.1" }, "dist": { "type": "zip", "url": "http://wordpress.org/wordpress-3.9.1.zip" }, "require": { "johnpbloch/wordpress-core-installer": "~0.1" }, "type": "wordpress-core" } } } } this file available on webroot of webserver. composer.json in project looks this:
{ "name": "dtcmedia/wp-startup", "description": "dtc media wordpress startup", "type": "wp-startup", "authors": [ { "name": "roy janssen", "homepage": "http://www.dtcmedia.nl", "role": "author" } ], "repositories": [ { "type": "composer", "url": "http://dtcmediainternet.nl" }, { "type":"composer", "url":"http://wpackagist.org" } ], "require": { "php": ">=5.3.0", "dtcmedia/wordpress": "*", "dtcmedia/dtcmedia-occasionmodule-portalkoppeling": "2.0.*" }, "extra": { "installer-name": "wp-startup", "installer-paths": { "content/plugins/{$name}/": ["type:wordpress-plugin"] } } } now using command $ composer show dtcmedia/wordpress results following: [invalidargumentexception] bundle dtcmedia/wordpress not found
the verbose output looks this:
composer show dtcmedia/wordpress -vvv reading ./composer.json loading config file /users/dtcmediainternet/.composer/config.json loading config file ./composer.json executing command (cwd): git describe --exact-match --tags executing command (cwd): git branch --no-color --no-abbrev -v downloading http://dtcmediainternet.nl/packages.json writing /users/dtcmediainternet/.composer/cache/repo/http---dtcmediainternet.nl/packages.json cache downloading http://wpackagist.org/packages.json writing /users/dtcmediainternet/.composer/cache/repo/http---wpackagist.org/packages.json cache downloading https://packagist.org/packages.json writing /users/dtcmediainternet/.composer/cache/repo/https---packagist.org/packages.json cache downloading http://wpackagist.org/p/providers-last-year$181336c94fbf892b27fbd6d7811319301623838fa3719dca410777ed789b0484.json writing /users/dtcmediainternet/.composer/cache/repo/http---wpackagist.org/p-providers-last-year.json cache downloading http://wpackagist.org/p/providers-old$8d2ec716409966db3ee305398eb0646d2ed0eb43b12afb18d84766da4e9c48ee.json writing /users/dtcmediainternet/.composer/cache/repo/http---wpackagist.org/p-providers-old.json cache downloading http://wpackagist.org/p/providers-last-2-months$509637861a8ef236e5ffa9d1e4e46018c3ac2db14989f23525f07a33554f21f7.json writing /users/dtcmediainternet/.composer/cache/repo/http---wpackagist.org/p-providers-last-2-months.json cache downloading http://wpackagist.org/p/providers-last-week$7493c77b849ded050c26ade395e967306a6502e010244c4217b854800df8fc12.json writing /users/dtcmediainternet/.composer/cache/repo/http---wpackagist.org/p-providers-last-week.json cache reading /users/dtcmediainternet/.composer/cache/repo/https---packagist.org/p-provider-active.json cache reading /users/dtcmediainternet/.composer/cache/repo/https---packagist.org/p-provider-archived.json cache reading /users/dtcmediainternet/.composer/cache/repo/https---packagist.org/p-provider-latest.json cache reading /users/dtcmediainternet/.composer/cache/repo/https---packagist.org/p-provider-stale.json cache [invalidargumentexception] bundle dtcmedia/wordpress not found exception trace: () @ phar:///usr/local/bin/composer/src/composer/command/showcommand.php:111 composer\command\showcommand->execute() @ phar:///usr/local/bin/composer/vendor/symfony/console/symfony/component/console/command/command.php:241 symfony\component\console\command\command->run() @ phar:///usr/local/bin/composer/vendor/symfony/console/symfony/component/console/application.php:892 symfony\component\console\application->doruncommand() @ phar:///usr/local/bin/composer/vendor/symfony/console/symfony/component/console/application.php:191 symfony\component\console\application->dorun() @ phar:///usr/local/bin/composer/src/composer/console/application.php:117 composer\console\application->dorun() @ phar:///usr/local/bin/composer/vendor/symfony/console/symfony/component/console/application.php:121 symfony\component\console\application->run() @ phar:///usr/local/bin/composer/src/composer/console/application.php:83 composer\console\application->run() @ phar:///usr/local/bin/composer/bin/composer:43 require() @ /usr/local/bin/composer:15
your composer.json resolves bundle have live without issue:
c:\server\dtcmedia>composer show dtcmedia/wordpress name : dtcmedia/wordpress descrip. : keywords : versions : 3.9.1 type : wordpress-core license : source : [git] https://github.com/wordpress/wordpress 3.9.1 dist : [zip] http://wordpress.org/wordpress-3.9.1.zip names : dtcmedia/wordpress requires johnpbloch/wordpress-core-installer ~0.1 might have been temporary issue broken packages.json uploaded or something.
also recommend utilize johnpbloch/wordpress bundle wordpress core.
php json wordpress composer-php dependency-management
Comments
Post a Comment