This issue is coming to me when I try to create a larval project. my php version is 8.2 and I already downloaded Composer.
I have searched for this problem on the internet and I couldn’t find anyone who faced this problem when he is creating Laravel project.
2
It looks like you need Git or it has to be in you environment path. There are various ways to get it but look here: https://git-scm.com/download/win
There is two way to solve this problem
The first one is to add --prefer-dist in your command to be like this
--prefer-dist
second on, make sure that you installed git and that exists in your PATH
git
PATH
you could install git from this link
link
Click here to cancel reply.
2
Answers
It looks like you need Git or it has to be in you environment path. There are various ways to get it but look here: https://git-scm.com/download/win
There is two way to solve this problem
The first one is to add
--prefer-dist
in your command to be like thissecond on, make sure that you installed
git
and that exists in yourPATH
you could install
git
from thislink