I run:
composer require drupal/media:8.1.x-dev
and I get:
./composer.json has been updated
Gathering patches for root package.
> DrupalProject\composer\ScriptHandler::checkComposerVersion
Loading composer repositories with package information
Updating dependencies (including require-dev)
1/2: http://packagist.org/p/provider-2016-10$5da3245ae3a6e36c4a4be4cee9c1c42a78fd2b203d6deda288effd75859b09c8.json
2/2: http://packagist.org/p/provider-latest$dc229f1d73e6457243e6c894cd84a8843abf2ac4336fdc158c73564f7dd5f197.json
Finished: success: 2, skipped: 0, failure: 0, total: 2
Your requirements could not be resolved to an installable set of packages.Problem 1
- The requested package drupal/meida could not be found in any version, there may be a typo in the package name.Potential causes:
- A typo in the package name
- The package is not available in a stable-enough version according to your minimum-stability setting
see for more details.Read for further common problems.
Installation failed, reverting ./composer.json to its original content.
What am I doing wrong?
Comments
Comment #2
slashrsm CreditAttribution: slashrsm at MD Systems GmbH commentedCorrect version to require is "drupal/media:1.x-dev".
Comment #3
hkirsman CreditAttribution: hkirsman commentedmedia:1.x-dev is definitely not correct. But now the initial "composer require drupal/media:8.1.x-dev" worked. Strange.
Comment #4
thamash@hkrisman From the do composer documentation (https://www.drupal.org/node/2718229):
Comment #6
nelslynn CreditAttribution: nelslynn commentedPlease accept my apologies for opening this issue if not appropriate.
I have tried both of the following:
composer require drupal/media:1.x-dev
composer require drupal/media:8.1.x-dev
And, I get the following:
I have tried the suggestions at the link provided (https://getcomposer.org/doc/articles/troubleshooting.md), but I still get the error.
Any suggestions?
Comment #7
hkirsman CreditAttribution: hkirsman commentedMay be you're doing it in the wrong folder? You should be in the root of the project, not web/ or any other.
Comment #8
nelslynn CreditAttribution: nelslynn commentedI'm doing from the root of the project.
All other composer commands work. This is the only one that produces an error.
Comment #9
joelhsmith CreditAttribution: joelhsmith commentedI am having the same problem with a different module
composer require drupal/views_slideshow:^8.4.3
I think it might not be related to the Media module, probably a different issue.
Comment #10
plato1123 CreditAttribution: plato1123 commentedI can't get composer to install any drupal modules and I can't figure out why.
Comment #11
plato1123 CreditAttribution: plato1123 commentedI had to run this, even though I was able to install Drupal and drush and ?? using composer without it? Huh?!!!
composer config repositories.drupal composer https://packages.drupal.org/8
Comment #12
joseph.olstadIs composer really necessary here?
Comment #13
joelhsmith CreditAttribution: joelhsmith commentedIt is best to use composer to manage this stuff in Drupal 8. But yes, it would be possible to do it the old fashion way. But I would not recommend it as a long-term plan.