Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

267
Visualizações
Couldn't create laravel project with composer (version 2.1.4)

I'm trying to create a laravel project with composer and when I run

composer create-project laravel/laravel example-app

in the terminal, the process stops with the following error:

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

I have php 7.4 running through Wampserver and I've added it's PATH to the environment variables and when I run php -v in the terminal, everything seems fine:

PHP 7.4.0 (cli) (built: Nov 27 2019 10:14:18) ( ZTS Visual C++ 2017 x64 )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies

what am I missing here? I'm using composer version 2.1.4 and running the command in administrative mode didn't make a difference neither.

screenshot of running commands on the command-line

over 4 years ago · Santiago Trujillo
1 Respostas
Responde à pergunta

0

Update to version 2.1.5 of Composer by running this command:

composer self-update

This was a bug that has since been fixed. It was attempting to create a directory called php: which is not possible on Windows systems.

over 4 years ago · Santiago Trujillo Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda