Why error ? Laravel 8 Install it is use. "composer create-project --prefer-dist laravel/laravel e-commerce dev-develop"
error: "
[InvalidArgumentException]
Could not find package laravel/laravel with version dev-develop in a version installable using your PHP version, PHP extensions and Composer version.
"
But WHY ???
You probably can't have spaces in your project name.
This should work
composer create-project --prefer-dist laravel/laravel e-commerce-dev-develop
I tried in composer v2 and it worked with and without spaces.
"dev-develop" not the project name. A reference to the 8.0 installation. Project name: "e-commerce"
You don't need that just do
composer create-project laravel/laravel e-commerce
And it will give you the latest released version.
Gives 5.8.
Not installed 8.0.
What error, usually a dependency problem, i.e., wrong php version.
@jlrdw @tray2 You are right. But let me give a detail; each website has its own php version. If you are working on the main server like me, change the php version of both the website and CLI.
Check on your command line what version it is giving you and ensure it's at least 7 3
Maybe this answer is a bit late, but if there are still people who find the same try using this command:
composer create-project --prefer-dist laravel/laravel Bootstrap-TablerUI "8.*"
also, make sure the PHP version is eligible to install laravel version 8
@alif12 Thanks, it worked for me. -> (composer create-project --prefer-dist laravel/laravel my-app "8.*")
Please sign in or create an account to participate in this conversation.