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

Unable to remove hirak/prestissimo #244

Open
amadhav1 opened this issue Feb 11, 2021 · 1 comment
Open

Unable to remove hirak/prestissimo #244

amadhav1 opened this issue Feb 11, 2021 · 1 comment

Comments

@amadhav1
Copy link

I am on a Macbook Pro Catalina
PHP: 8.0.2
Python: pip3 python 3.9
Vagrant 2.2.14
ansible 2.10.5
Coomposer 2.0.9

When I try composer --version or anything using Composer I get this

The "hirak/prestissimo" plugin was skipped because it requires a Plugin API version ("^1.0.0") that does not match your Composer installation ("2.0.0"). You may need to run composer update with the "--no-plugins" option.

Then I tried the instructions to remove it "composer global remove hirak/prestissimo", and I get this:

Changed current directory to /Users/xxx/.composer
The "hirak/prestissimo" plugin was skipped because it requires a Plugin API version ("^1.0.0") that does not match your Composer installation ("2.0.0"). You may need to run composer update with the "--no-plugins" option.
./composer.json has been updated
The "hirak/prestissimo" plugin was skipped because it requires a Plugin API version ("^1.0.0") that does not match your Composer installation ("2.0.0"). You may need to run composer update with the "--no-plugins" option.
Running composer update hirak/prestissimo
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.

Problem 1
- consolidation/cgr is locked to version 2.0.4 and an update of this package was not requested.
- consolidation/cgr 2.0.4 requires php ^5.3.2 || ^7.0 -> your php version (8.0.2) does not satisfy that requirement.

Removal failed, reverting ./composer.json to its original content.
Removal failed, hirak/prestissimo is still present, it may be required by another package. See composer why hirak/prestissimo.

Any Idea how I can get rid of it so that I can use composer?

@kubawerlos
Copy link
Contributor

Any Idea how I can get rid of it so that I can use composer?

Your question is incorrect - you can use Composer, it's just a warning.

In your set up you have 2 issues (none of them is preventing you from using Composer):

  • you have globally installed "hirak/prestissimo" which works with Composer 1 and you have Composer 2
  • you have globally installed "consolidation/cgr" which requires php ^5.3.2 || ^7.0 and your php version (8.0.2) does not satisfy that requirement

So, when you are trying to remove "hirak/prestissimo" Composer fails to update dependencies because of the other issue.

You can either remove both problematic dependencies with
composer global remove hirak/prestissimo consolidation/cgr
or ignore the PHP version issue with
composer global remove hirak/prestissimo --ignore-platform-reqs

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

2 participants