demo: Can't install via composer
Then I run the command for installation project:
composer create-project symfony/symfony-demo my_project
I am getting the error:
Could not find package symfony/symfony-demo with stability stable in a version installable using your PHP version, PHP extensions and Composer version.
PHP 8.1.8. Composer 2.3.10
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Reactions: 2
- Comments: 19 (7 by maintainers)
When I added the sqlite php extension:
sudo apt install php8.0-sqlite3The issue is fixed 😃 Forcomposer create-projectneed more details@7ochem indeed. The extra info is displayed in
composer requirebut not incomposer create-project. I opened https://github.com/composer/composer/issues/10959 about it.On my laptop was php version 8.0. I upgraded version and the
Composer should be version 2.4
compmosershowed more detail:I had to install php8.1-sqlite3 to get OP’s issue to resolve. By the way, after updating composer to the snapshot version still didn’t get a more descriptive error message.
@7ochem you can run
composer self-update --snapshotto use the snapshot version of composer (which contains that change that will be part of the 2.4 release)