this worked for me. without changing "minimum-stability": "dev", in composer.json
$ composer require 'drupal/calendar_datetime:1.x-dev@dev' 'drupal/calendar:^1.0@beta'
Do not run Composer as root/super user! See https://getcomposer.org/root for details
Continue as root/super user [yes]?
./composer.json has been updated
Running composer update drupal/calendar_datetime drupal/calendar
Loading composer repositories with package information
Updating dependencies
Lock file operations: 3 installs, 0 updates, 0 removals
- Locking drupal/calendar (1.0.0-beta2)
- Locking drupal/calendar_datetime (dev-1.x)
- Locking drupal/views_templates (1.6.0)
Writing lock file
Installing dependencies from lock file (including require-dev)
Package operations: 3 installs, 0 updates, 0 removals
- Downloading drupal/views_templates (1.6.0)
- Installing drupal/views_templates (1.6.0): Extracting archive
- Installing drupal/calendar_datetime (dev-1.x)
- Installing drupal/calendar (1.0.0-beta2): Extracting archive
Generating autoload files
47 packages you are using are looking for funding.
Use the `composer fund` command to find out more!
Found 2 security vulnerability advisories affecting 2 packages.
Run "composer audit" for a full list of advisories.
thx. tried it. no luck.
$ composer require 'drupal/api:^2.0' --dry-run -W
Do not run Composer as root/super user! See https://getcomposer.org/root for details
Continue as root/super user [yes]?
./composer.json has been updated
Running composer update drupal/api --with-all-dependencies
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Root composer.json requires drupal/api ^2.0 -> satisfiable by drupal/api[2.0.0].
- drupal/api 2.0.0 requires symfony/yaml ^4.4.19 || ^6.2 -> found symfony/yaml[v4.4.19, ..., v4.4.45, v6.2.0, ..., v6.4.12] but it conflicts with your root composer.json require (^7.1).
Installation failed, reverting ./composer.json and ./composer.lock to their original content.
@fjgarlin. does not work. thanks.
i've upgraded from Drupal 11.0.1 to 11.0.4
$ composer require 'drupal/api:2.x-dev@dev'
Do not run Composer as root/super user! See https://getcomposer.org/root for details
Continue as root/super user [yes]?
./composer.json has been updated
Running composer update drupal/api
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.
Problem 1
- drupal/api dev-2.x requires nikic/php-parser ^4.7 -> found nikic/php-parser[v4.7.0, ..., v4.19.2] but it conflicts with your root composer.json require (^5.2).
- drupal/api 2.x-dev is an alias of drupal/api dev-2.x and thus requires it to be installed too.
- Root composer.json requires drupal/api 2.x-dev@dev -> satisfiable by drupal/api[2.x-dev (alias of dev-2.x)].
Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.
Installation failed, reverting ./composer.json and ./composer.lock to their original content.
yasheshb → created an issue.
yasheshb → created an issue.
yasheshb → created an issue.
replying to comment 2 💬 Installation via composer breaks down Fixed
hi
geoanders →
thanks for replying.
i did a fresh install and it worked. so sorry to waste your time. my apologies.
yasheshb → created an issue.
when the installed paths is set to code sniffer only
~/.config/composer/vendor/drupal/coder/coder_sniffer
then it gives an error as follows
ERROR: Referenced sniff "SlevomatCodingStandard.ControlStructures.RequireNullCoalesceOperator" does not exist
#6 worked for me too. thanks tr4nznrg → .