Thought I would check the module out however when I went to install it I had to add the repo to my main composer.json file directly. Did I do something wrong or is the modules composer.json file not being picked up correctly?
Thanks in advance.
Thought I would check the module out however when I went to install it I had to add the repo to my main composer.json file directly. Did I do something wrong or is the modules composer.json file not being picked up correctly?
Thanks in advance.
Comments
Comment #2
erik seifert commentedInstall as usually with composer
for assets following this guide:
https://drupalize.me/tutorial/composer-configuration-drupal?p=3233
Comment #3
erik seifert commentedComment #4
Christopher Riley commentedThat is exactly what I did and it complained about not being able to find the two (2) support files as so:
-> composer require drupal/image_sizes
Using version ^1.0 for drupal/image_sizes
./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) Your requirements could not be resolved to an installable set of packages.
Problem 1
- drupal/image_sizes 1.0.0 requires npm-asset/css-element-queries ~1.0.2 -> no matching package found.
- drupal/image_sizes 1.x-dev requires npm-asset/css-element-queries ~1.0.2 -> no matching package found.
- Installation request for drupal/image_sizes ^1.0 -> satisfiable by drupal/image_sizes[1.x-dev, 1.0.0].
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.
- It's a private package and you forgot to add a custom repository to find it
Read for further common problems.
Installation failed, reverting ./composer.json to its original content.
By adding the repo as follows in the repositories section of the composer.json it works:
"1": {
"type": "composer",
"url": "https://asset-packagist.org"
},
I have a ton of modules installed and wanted to bring it to your attention since normally I do not have to add a repo.
Thanks
Comment #5
erik seifert commentedI will write a notice on description page.
Comment #6
erik seifert commentedAdd documentation to project description.