- 🇮🇳India siddharthjain
I came late to this issue queue, but after going through all the comments #47 worked for me. If you are following comment #17 then you must have "oomphinc/composer-installers-extender": "^1.0" version other you will get the same error(as per #27).
- 🇬🇧United Kingdom jacobupal Leeds
Just to lay it out, to install
drual/chosen
(and therefore installjjj/chosen
to the correct place) with composer you need to do the following:composer require wikimedia/composer-merge-plugin
- add the following to the "extra" section of your composer.json:
"merge-plugin": { "include": [ "web/modules/contrib/chosen/composer.libraries.json" ] },
composer require 'drupal/chosen:^4.0' -W
- 🇺🇸United States codesmith San Francisco
As per #3069730 to not use wikimedia/composer-merge-plugin I was able to get drupal/chosen and jjj/chosent to install correctly by:
1) Manually add to "repositories" section
"repositories": [ { "type": "package", "package": { "name": "jjj/chosen", "version": "2.2.1", "type": "drupal-library", "extra": { "installer-name": "chosen" }, "source": { "url": "https://github.com/JJJ/chosen.git", "type": "git", "reference": "2.2.1" } } }
2) Then from your project's root directory
composer require 'drupal/chosen:^4.0' composer require 'jjj/chosen:^2.2'