I'm attempting to update a project from 8.x-2.0-alpha3 to 8.x-2.0-alpha4. When running composer update drupal/dropzone.js, the process runs fine at first, but then returns: Nothing to install or update.

So, this was tried: composer require 'drupal/dropzonejs:^2.0.0-alpha4', which returned:

Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - drupal/dropzonejs_eb_widget 2.0.0-alpha3 requires drupal/dropzonejs 2.0.0-alpha3 -> satisfiable by drupal/dropzonejs[2.0.0-alpha3] but these conflict with your requirements or minimum-stability.
    - drupal/dropzonejs_eb_widget 2.0.0-alpha3 requires drupal/dropzonejs 2.0.0-alpha3 -> satisfiable by drupal/dropzonejs[2.0.0-alpha3] but these conflict with your requirements or minimum-stability.
    - drupal/dropzonejs_eb_widget 2.0.0-alpha3 requires drupal/dropzonejs 2.0.0-alpha3 -> satisfiable by drupal/dropzonejs[2.0.0-alpha3] but these conflict with your requirements or minimum-stability.
    - Installation request for drupal/dropzonejs_eb_widget (locked at 2.0.0-alpha3) -> satisfiable by drupal/dropzonejs_eb_widget[2.0.0-alpha3].


Installation failed, reverting ./composer.json to its original content.

To check another method: composer update drupal/dropzonejs --with-dependencies, which returned Nothing to install or update.

So, what's next to try?

Comments

karolus created an issue. See original summary.

karolus’s picture

Did some more checking, including running this per the release notes: `composer require 'drupal/dropzonejs:^2.0'`.

This still didn't update, so tried one more thing: manually editing the composer.lock to change the version from alpha3 to alpha4. This created some warnings on the datestamp issues, and suggested to redownload the module files, which was done.

Module then successfully updated.

karolus’s picture

Status: Active » Fixed
mmjvb’s picture

Category: Bug report » Support request

Nothing to do with dropzonejs, find out what would prevent the desired version with prohibits. Take away what is blocking, in my case the version constraint on alpha3. Update with dependencies

docker@cli:/var/www$ composer prohibits drupal/dropzonejs:2.0.0-alpha4
drupal-composer/drupal-project  -  requires  drupal/dropzonejs (2.0.0-alpha3)
docker@cli:/var/www$ composer require drupal/dropzonejs:^2.0 --no-update
./composer.json has been updated
docker@cli:/var/www$ composer update drupal/dropzonejs --with-dependencies
> DrupalProject\composer\ScriptHandler::checkComposerVersion
Dependency "drupal/core" is also a root requirement, but is not explicitly whitelisted. Ignoring.
Loading composer repositories with package information
Updating dependencies (including require-dev)
Package operations: 0 installs, 1 update, 0 removals
  - Updating drupal/dropzonejs (2.0.0-alpha3 => 2.0.0-alpha4): Loading from cache
Writing lock file
Generating autoload files
> DrupalProject\composer\ScriptHandler::createRequiredFiles
docker@cli:/var/www$
grantkruger’s picture

The hack by karolus worked for me too when I got the exact same problem, a prohibit issue with dropzonejs_eb_widget which to me is in this same module and therefore is a valid issue here.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

grantkruger’s picture

I hit the same problem when I tried moving from 8.x-1.0-alpha9 to 8.x-2.0, but where the old fix caused an error when running composer validate. As before mmjvb's suggestion for use of composer prohibits did not help me. This time karolus' fix that worked for me before now caused a composer error when running composer validate. In the end what worked for me was removing all references to dropzonejs (and enyo) from my composer.json file and then running composer require 'drupal/dropzonejs:^2.0' which reset all of the composer settings to something that I could verify worked and that passed a composer validate.

ruslan piskarov’s picture

Find "drupal/dropzonejs_eb_widget" section in composer.lock and remove.
After run: composer require drupal/dropzonejs.

oleksandr.s’s picture

In my case 3 following steps helped:
1. composer remove drupal/dropzonejs
2. composer remove drupal/dropzonejs_eb_widget
3. composer require drupal/dropzonejs
As result newer version of dropzonejs was installed.