Open otarza opened 7 years ago
Similar issue: https://www.drupal.org/node/2770807
Add simplemde-markdown-editor in repositories of your composer.json file:
Since this is a Drupal integration module it should be stated clearly which composer.json file is referred to here. The composer.json file of the module or of Drupal core.
I also added a new issue on D.O. regarding this issue since there is no issue reflecting the fact that this module is not installable via composer at the moment by using the Drupal docs recommended way. https://www.drupal.org/project/simplemde/issues/3008627
IMO The docs for this project just need to add a note about adding the dependency under "repositories" in the Drupal site's composer.json
file.
The reason is noted briefly here: https://getcomposer.org/doc/faqs/why-can%27t-composer-load-repositories-recursively.md
You may run into problems when using custom repositories because Composer does not load the repositories of your requirements, so you have to redefine those repositories in all your composer.json files.
While trying to install this module using composer I'm getting following error:
Steps to reproduce:
"drupal/simplemde": "1.0-alpha3",
to your composer.json;composer update
;I'm not sure what is causing this.
Workaround solution:
Add
simplemde-markdown-editor
inrepositories
of your composer.json file:Even workaround solution prevents the error, module itself still can't be enabled if you don't add
"drupal/markdown": "1.2",
as a dependency under your maincomposer.json
, but this might be scope of another issue?