Problem/Motivation
composer require 'drupal/daterangepickerwidget:^1.0@alpha'
./composer.json has been updated
Running composer update drupal/daterangepickerwidget
Gathering patches for root package.
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.
Problem 1
- drupal/daterangepickerwidget 1.0.0-alpha1 requires bower-asset/jquery-ui-daterangepicker 0.6.0-beta.1 -> could not be found in any version, there may be a typo in the package name.
- drupal/daterangepickerwidget[1.0.0-alpha2, ..., 1.0.1-alpha1] require bower-asset/jquery-ui-daterangepicker ^0.5 -> could not be found in any version, there may be a typo in the package name.
- Root composer.json requires drupal/daterangepickerwidget ^1.0@alpha -> satisfiable by drupal/daterangepickerwidget[1.0.0-alpha1, 1.0.0-alpha2, 1.0.0-alpha3, 1.0.1-alpha1].
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
Steps to reproduce
Proposed resolution
Remaining tasks
User interface changes
API changes
Data model changes
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | Screenshot 2023-09-05 at 8.58.17 PM.png | 70.73 KB | josedsilva |
| #3 | unable to install.png | 57.61 KB | coaston |
Comments
Comment #2
josedsilva@maxilein please try clearing composer cache:
composer clear-cacheThen install the latest version:
composer require 'drupal/daterangepickerwidget:^1.0@alpha'This was an issue with
drupal/daterangepickerwidget:1.0.0-alpha1but has been resolved in the newer packages.Comment #3
coaston commentedI have got the same issue. Please reffer to attached picture.
Comment #4
shubham_jain commentedhi, I am also facing the same error. I think there is problem in composer.json file.
Please maintainers look into it.
Comment #5
josedsilvaDid you follow the Installation instruction before executing composer?
The dependency bower-asset/jquery-ui-daterangepicker:^0.5 is pulled in from Asset Packagist.
Ref: https://github.com/drupal-composer/drupal-project/issues/278#issuecommen...
Please do the following:
composer require oomphinc/composer-installers-extender1. Add the Asset Packagist repository to the "repositories" section:
2. Add "installer-types" and update "installer-paths" in the "extra" section:
composer require 'drupal/daterangepickerwidget:^1.0@alpha'Comment #6
shubham_jain commentedHi @josedsilva, the solution provided by you solves the issue.
Previously, I edited the composer.json and added the "repositories" section. But forgot to go the github link and update composer.json file.
Resulting in this error.
Comment #7
coaston commentedIs it possible to add possiblilty to downlod it direcly with no additional steps so just withs
composer require 'drupal/daterangepickerwidget:^1.0@alpha' --width-all-dependenciesComment #8
josedsilvaInstallation setup for Asset Packagist was not done prior to installing this module. Hence the issue of missing dependencies occurred.
Closing ticket as non-issue since the system works as designed.
Comment #9
shubham_jain commentedHi @josedsilva, can you please review my work in this issue as I have given my valuable time to this issue.