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

Error composer global require hirak/prestissimo #243

Closed
eacevedof opened this issue Dec 19, 2020 · 4 comments
Closed

Error composer global require hirak/prestissimo #243

eacevedof opened this issue Dec 19, 2020 · 4 comments

Comments

@eacevedof
Copy link

eacevedof commented Dec 19, 2020

running composer global require hirak/prestissimo I get this error:

[InvalidArgumentException]                                                                                               
  Package hirak/prestissimo has a PHP requirement incompatible with your PHP version, PHP extensions and Composer version                                                                                                                         
  • php version:
    • PHP 7.4.1
  • composer version:
    • Composer version 2.0-dev (2.0-dev+bc31351b5bbbc5d33e916c1e54df3a291c0909b5) 2020-12-15 19:39:50

Image

@avindra
Copy link

avindra commented Dec 19, 2020

@eacevedof not sure about PHP7 support, but see #233 for Composer 2

@eacevedof
Copy link
Author

@eacevedof not sure about PHP7 support, but see #233 for Composer 2

Thank you @avindra I was working with no issues till I had to rebuild my containers.

@eacevedof
Copy link
Author

Issue #233 has the concerning info about this error.

@avindra
Copy link

avindra commented Dec 21, 2020

Hey @eacevedof you should try changing the spec to run with the ignore flag:

composer global require hirak/prestissimo --ignore-platform-reqs

This informs composer that you know what you're doing and to ignore any specific PHP engine constraint.

I vaguely remember Composer1 + hirak/prestissimo + PHP7 working perfectly fine.

The better option is probably to use Composer 2 and uninstall prestissimo.

In any case, the latest release should still work well if you really need Composer 1.

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