Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with composer update #15

Open
alexey-laptev opened this issue Mar 17, 2017 · 15 comments
Open

Problem with composer update #15

alexey-laptev opened this issue Mar 17, 2017 · 15 comments

Comments

@alexey-laptev
Copy link

Hello!

Problem 1
- newerton/yii2-fancybox dev-master requires bower-asset/fancybox 2.1.6 -> no matching package found.
- newerton/yii2-fancybox dev-master requires bower-asset/fancybox 2.1.6 -> no matching package found.
- Installation request for newerton/yii2-fancybox dev-master -> satisfiable by newerton/yii2-fancybox[dev-master].

@newerton
Copy link
Owner

@alexey-laptev I set the version 2.1.6, why they released version 3.0.
Execute:

composer global require "fxp/composer-asset-plugin:^1.2.0"

@mazurva
Copy link

mazurva commented Mar 20, 2017

After updating, still no change.

@alexey-laptev
Copy link
Author

thank you! :)

@jetexe
Copy link

jetexe commented Mar 20, 2017

the problem is still not resolved

@newerton
Copy link
Owner

@mazurva and @jetexe

Execute this command:

php composer.phar global require "fxp/composer-asset-plugin:^1.2.0"
php composer.phar require --prefer-dist newerton/yii2-fancybox "dev-master"

Result:
image

@mazurva
Copy link

mazurva commented Mar 20, 2017

Sometimes before it need execute:

php composer.phar self-update

But, it doesn't matter, thanks anyway.
It's really helped.

@priest671
Copy link

still not work

@newerton
Copy link
Owner

newerton commented Mar 20, 2017

@priest671 execute o clean-cache and self-update.

php composer.phar clear-cache
php composer.phar self-update
php composer.phar global require "fxp/composer-asset-plugin:^1.2.0"
php composer.phar require --prefer-dist newerton/yii2-fancybox "dev-master"

Show me the error.

@Serhos
Copy link

Serhos commented Mar 23, 2017

the problem is still not resolved

@newerton
Copy link
Owner

@Serhos Have you run the above commands?

@Serhos
Copy link

Serhos commented Mar 24, 2017

@newerton
Yes, I have run the above commands and I see :

  • newerton/yii2-fancybox dev-master requires bower-asset/fancybox 2.1.6 -> no matching package found.
  • newerton/yii2-fancybox dev-master requires bower-asset/fancybox 2.1.6 -> no matching package found.
  • Installation request for newerton/yii2-fancybox dev-master -> satisfiable by newerton/yii2-fancybox[dev-master].

@alexey-laptev
Copy link
Author

yes, problem returned (

@newerton
Copy link
Owner

This problem is because of the composer cache.
Search for the folder, and delete all folders and files.

C:\Users\[USER]\AppData\Local\Composer\files

Then execute:

php composer.phar self-update
php composer.phar global require "fxp/composer-asset-plugin:^1.2.0"
php composer.phar require --prefer-dist newerton/yii2-fancybox "dev-master"

Result:
image

Fancybox v2.1.7
https://github.com/fancyapps/fancybox/tree/V2.1.7
https://github.com/fancyapps/fancybox/blob/V2.1.7/bower.json

@hadouke
Copy link

hadouke commented Feb 15, 2021

Looks like this is incompatible with Composer 2.0
Running with Composer 2.0 and PHP 7.2

`[InvalidArgumentException]
Package fxp/composer-asset-plugin at version ^1.2.0 has a PHP requirement incompatible with your PHP version, PHP extensions and Composer version

composer require --prefer-dist newerton/yii2-fancybox "dev-master"
./composer.json has been updated
Running composer update newerton/yii2-fancybox
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 bower-asset/fancybox, it could not be found in any version, there may be a typo in the package name.
Problem 2
- Root composer.json requires newerton/yii2-fancybox dev-master -> satisfiable by newerton/yii2-fancybox[dev-master].
- newerton/yii2-fancybox dev-master requires bower-asset/fancybox ~2.1.5 -> could not be found in any version, there may be a typo in the package name.
Problem 3
- fxp/composer-asset-plugin[v1.0.0, ..., v1.0.2] require composer-plugin-api 1.0.0 -> found composer-plugin-api[2.0.0] but it does not match the constraint.
- fxp/composer-asset-plugin[v1.0.3, ..., v1.4.6] require composer-plugin-api ^1.0 -> found composer-plugin-api[2.0.0] but it does not match the constraint.
- Root composer.json requires fxp/composer-asset-plugin * -> satisfiable by fxp/composer-asset-plugin[v1.0.0, ..., v1.4.6].

Potential causes:

Read https://getcomposer.org/doc/articles/troubleshooting.md for further common problems.

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

@newerton
Copy link
Owner

@hadouke I did a big update on the package, now it has support for Composer 2, and support for "fxp/composer-asset-plugin" has been removed

@newerton newerton reopened this Feb 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants