prestissimo
prestissimo copied to clipboard
Unable to remove hirak/prestissimo
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?
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