Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PHP runtime error while creating laravel project #10021

Closed
ghost opened this issue Jul 22, 2021 · 5 comments
Closed

PHP runtime error while creating laravel project #10021

ghost opened this issue Jul 22, 2021 · 5 comments
Labels
Milestone

Comments

@ghost
Copy link

ghost commented Jul 22, 2021

  • PHP Version: v8.0.8
  • OS: Windows 10
  • Composer Version 2.1.4

Description:

When I run try to create a Laravel project I get the following error (despite the fact that during the installation of composer I had given full path of php.exe present in my OS) :

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

Steps to Reproduce:

  • open cmd as administrator
  • run the following command:
composer create-project laravel/laravel example-app

Attached here is the screenshot of complete output:
image

@ghost ghost changed the title PHP runtime error while creating laravel project [RuntimeException] php: does not exist and could not be created. PHP runtime error while creating laravel project Jul 22, 2021
@fahmiidris
Copy link

I also got the same problem. What do I have to do?

@alexkart
Copy link

alexkart commented Jul 22, 2021

This issue is already reported #10020, the only difference is that on Windows it can’t create a directory with such name.

@alexkart
Copy link

alexkart commented Jul 22, 2021

I also got the same problem. What do I have to do?

You can use composer version 2.1.3, it doesn’t have this issue.

@gmbhurgri
Copy link

On Windows 10, using xampp with php 8. Same issue here.

When i rolled back composer to version 2.1.3 it doesn't show the error.

@Seldaek Seldaek added this to the 2.1 milestone Jul 23, 2021
@Seldaek Seldaek added the Bug label Jul 23, 2021
@Seldaek
Copy link
Member

Seldaek commented Jul 23, 2021

https://github.com/composer/composer/releases/tag/2.1.5 is out with the fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants