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

Comments

maxilein created an issue. See original summary.

josedsilva’s picture

Assigned: Unassigned » josedsilva
Status: Active » Needs review

@maxilein please try clearing composer cache: composer clear-cache
Then install the latest version: composer require 'drupal/daterangepickerwidget:^1.0@alpha'
This was an issue with drupal/daterangepickerwidget:1.0.0-alpha1 but has been resolved in the newer packages.

coaston’s picture

Status: Needs review » Active
StatusFileSize
new57.61 KB

I have got the same issue. Please reffer to attached picture.

shubham_jain’s picture

hi, I am also facing the same error. I think there is problem in composer.json file.

Please maintainers look into it.

josedsilva’s picture

Status: Active » Needs review
StatusFileSize
new70.73 KB

Did 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:

  1. Execute composer require oomphinc/composer-installers-extender
  2. Edit your project's composer.json file as follows:
    1. Add the Asset Packagist repository to the "repositories" section:
        "repositories": [
    ...
            {
                "type": "composer",
                "url": "https://asset-packagist.org"
            }
        ],
    

    2. Add "installer-types" and update "installer-paths" in the "extra" section:

    "extra": {
    ...
            "installer-types": ["npm-asset", "bower-asset"],
            "installer-paths": {
    ...
                "web/libraries/{$name}": ["type:drupal-library", "type:npm-asset", "type:bower-asset"],
    ...
            }
    ...
        }
    
  3. Execute composer require 'drupal/daterangepickerwidget:^1.0@alpha'
shubham_jain’s picture

Hi @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.

coaston’s picture

Is 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-dependencies

josedsilva’s picture

Status: Needs review » Closed (works as designed)

Installation 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.

shubham_jain’s picture

Hi @josedsilva, can you please review my work in this issue as I have given my valuable time to this issue.