app_dev's avatar

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 ???

0 likes
11 replies
Tray2's avatar

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.

app_dev's avatar

"dev-develop" not the project name. A reference to the 8.0 installation. Project name: "e-commerce"

Tray2's avatar

You don't need that just do

composer create-project laravel/laravel e-commerce

And it will give you the latest released version.

1 like
jlrdw's avatar

What error, usually a dependency problem, i.e., wrong php version.

1 like
app_dev's avatar

@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.

Harizon Wanjau's avatar

Check on your command line what version it is giving you and ensure it's at least 7 3

alif12's avatar

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

3 likes
FillipiN's avatar

@alif12 Thanks, it worked for me. -> (composer create-project --prefer-dist laravel/laravel my-app "8.*")

Please or to participate in this conversation.