0

Please help me! I installed composer and then I create Laravel project via command:

composer create-project Laravel/Laravel myapp

but it show error message:

[RuntimeException] php: does not exist and could not be created

How to solve?

Here my full command prompt:

C:\xampp\htdocs>composer create-project laravel/laravel cms
Creating a "laravel/laravel" project at "./cms"
Installing laravel/laravel (v8.5.22)
  - Installing laravel/laravel (v8.5.22): Extracting archive


  [RuntimeException]
  php: does not exist and could not be created.


create-project [-s|--stability STABILITY] [--prefer-source] [--prefer-dist] [--prefer-install PREFER-INSTALL] [--repository REPOSITORY] [--repository-url REPOSITORY-URL] [--add-repository] [--dev] [--no-dev] [--no-custom-installers] [--no-scripts] [--no-progress] [--no-secure-http] [--keep-vcs] [--remove-vcs] [--no-install] [--ignore-platform-req IGNORE-PLATFORM-REQ] [--ignore-platform-reqs] [--ask] [--] [<package>] [<directory>] [<version>]
Raptor
  • 53,206
  • 45
  • 230
  • 366
Sovanda
  • 9
  • 2

1 Answers1

-2

try installing old composer version, maybe this version has problem.

here is the link for the 2.1.5 version.

https://www.malavida.com/en/soft/composer/