issue with Userfrosting & Composer - no matching packages - composer-php

Just working my way through the Userfrosting 4 tutorial. The basic app is up and running and am now creating the first sprinkle under "Your First UserFrosting Site".
On running composer update I get the following:
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
- userfrosting/config dev-master requires userfrosting/support ^4.0.0 -> no matching package found.
- userfrosting/config dev-master requires userfrosting/support ^4.0.0 -> no matching package found.
- Installation request for userfrosting/config dev-master -> satisfiable by userfrosting/config[dev-master].
Potential causes:
- A typo in the package name
- The package is not available in a stable-enough version according to your minimum-stability setting
I've replaced my code with the copied / pasted code from the tutorial and still get the errors. I've absolutely no idea where to go from here - any pointers would be appreciated.

Make sure you have the latest version (4.0.11-alpha as of now) since the component versioning was changed/fixed in a recent version.
The core composer.json file shoudn't use the dev-master version of userfrosting/config component anymore, but one of the 4.0.x version. See : https://github.com/userfrosting/UserFrosting/blob/master/app/sprinkles/core/composer.json#L31. If you have a custom ^composer.json` file in your sprinkle, you don't need to add the packages define in the core composer file again.
That being said, if you're still having some issues, you can try running composer clear-cache as composer might have cached some outdated info.

Related

Install Live Search for Magento - package not found

I've installed Magento with sample data on a virtual machine. Now I'm trying to install Live Search for it. I used the instructions from this link. As the instruction says, I run the command below:
composer require magento/live-search
But it gives me an error:
Problem 1
- magento/live-search 2.0.0 requires magento/module-live-search-metrics 2.0.0 -> could not be found in any version, there may be a typo in the package name.
- magento/live-search 2.0.1 requires magento/module-live-search-metrics 2.0.1 -> could not be found in any version, there may be a typo in the package name.
- magento/live-search 2.0.2 requires magento/module-live-search-metrics 2.0.2 -> could not be found in any version, there may be a typo in the package name.
- magento/live-search 2.0.3 requires magento/module-live-search-metrics 2.0.3 -> could not be found in any version, there may be a typo in the package name.
- Root composer.json requires magento/live-search ^2.0 -> satisfiable by magento/live-search[2.0.0, 2.0.1, 2.0.2, 2.0.3].
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 <https://getcomposer.org/doc/04-schema.md#minimum-stability> for more details.
- It's a private package and you forgot to add a custom repository to find it
Read <https://getcomposer.org/doc/articles/troubleshooting.md> for further common problems.
You can also try re-running composer require with an explicit version constraint, e.g. "composer require magento/live-search:*" to figure out if any version is installable, or "composer require magento/live-search:^2.1" if you know which you need.
As I can see, it says magento/module-live-search-metrics does not exist, but I couldn't find anyone else who has the same problem as mine, which means this is only my problem.
You just have to type:
composer require magento/module-live-search
and that's it =)

Can't install/update modules on Drupal 8.9.6 with composer 2.0

I'm trying to install a module on a Drupal 8.9.6 using composer 2.0 but I get the next error:
Your requirements could not be resolved to an installable set of packages.
Problem 1
- cweagans/composer-patches 1.6.7 requires composer-plugin-api ^1.0 -> found composer-plugin-api[2.0.0] but it does not match the constraint.
- drupal/varbase_heroslider_media 7.13.0 requires cweagans/composer-patches ~1.0 -> satisfiable by cweagans/composer-patches[1.6.7].
- drupal/varbase_heroslider_media is locked to version 7.13.0 and an update of this package was not requested.
You are using Composer 2, which some of your plugins seem to be incompatible with. Make sure you update your plugins or report a plugin-issue to ask them to support Composer 2.
Then, I've tried to update cweagans/composer-patches to 1.7 because this issue was solved here. But I get the next error:
Your requirements could not be resolved to an installable set of packages.
Problem 1
- drupal/drupal-library-installer-plugin 0.3 requires composer-plugin-api ^1.0 -> found composer-plugin-api[2.0.0] but it does not match the constraint.
- drupal/varbase_heroslider_media 7.13.0 requires drupal/drupal-library-installer-plugin ^0.3 -> satisfiable by drupal/drupal-library-installer-plugin[0.3].
- drupal/varbase_heroslider_media is locked to version 7.13.0 and an update of this package was not requested.
You are using Composer 2, which some of your plugins seem to be incompatible with. Make sure you update your plugins or report a plugin-issue to ask them to support Composer 2.
Ok, then, I've tried to update drupal/drupal-library-installer-plugin I get again the first error. It is a circle and I can't update Drupal.
How could I do it?
drupal/drupal-library-installer-plugin has not seen any updates since more than five years(!). Either search for an alternative, or downgrade Composer to v1

When I try to install a package in Laravel using composer the following error occurs

./composer.json has been updated
Deprecation warning: require-dev.require is invalid, it should have a vendor name, a forward slash, and a package name. The vendor and package name can be words separated by -, . or _. The complete name should match "^[a-z0-9]([_.-]?[a-z0-9]+)*/[a-z0-9](([_.]?|-{0,2})[a-z0-9]+)*$". Make sure you fix this as Composer 2.0 will error.
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
- The requested package require could not be found in any version, there may be a typo in the package name.
Problem 2
- Conclusion: don't install consoletvs/charts 5.4.0
Does anyone know the reason for this and how to fix it? It happened for several packages,when I try to install and at some point it shows the package is there on composer.json. but then results in reverting back to the previous state.

Can I install LiipImagineBundle with Symfony 5?

I'm trying to install LiipImagineBundle with Symfony 5 but I'm getting this error :
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Installation request for liip/imagine-bundle ^2.2 -> satisfiable by liip/imagine-bundle[2.2.0].
- liip/imagine-bundle 2.2.0 requires symfony/asset ^3.4|^4.2 -> no matching package found.
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 <https://getcomposer.org/doc/04-schema.md#minimum-stability> for more details.
- It's a private package and you forgot to add a custom repository to find it
Read <https://getcomposer.org/doc/articles/troubleshooting.md> for further common problems.
Installation failed, reverting ./composer.json to its original content.
How can I fix this ?
I've seen this : Add support for Symfony 5
Then it's a matter of time.

How to fix 'Your requirements could not be resolved to an installable set of packages.' in laravel boiler templage

I am going to develop laravel project with boiler template.
I want to have multiple themes.
So, I try to install shipu/themevel package. However composer require shipu/themevel, this command has error like this. Please help me.
Using version ^1.6 for `shipu/themevel
./composer.json has been updated
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
- Can only install one of: hassankhan/config[0.11.2, 0.10.0].
- Can only install one of: hassankhan/config[0.10.0, 0.11.2].
- Can only install one of: hassankhan/config[0.10.0, 0.11.2].
- shipu/themevel v1.6 requires hassankhan/config ^0.10.0 -> satisfiable by hassankhan/config[0.10.0].
- Installation request for shipu/themevel ^1.6 -> satisfiable by shipu/themevel[v1.6].
- Installation request for hassankhan/config (locked at 0.11.2) -> satisfiable by hassankhan/config[0.11.2].
Installation failed, reverting ./composer.json to its original content.
you have to update the higher version of shipu/themevel. please update v2.1 or higher.

Resources