0
respostas

Não consigo dar o composer install

Quando rodo o install retorna o erro falando que não contem pacotes compatíveis e pede pra rodar o update.

composer install
Installing dependencies from lock file (including require-dev)
Verifying lock file contents can be installed on current platform.
Your lock file does not contain a compatible set of packages. Please run composer update.

  Problem 1
    - Root composer.json requires php ^7.1.3 but your php version (8.1.4) does not satisfy that requirement.
  Problem 2
    - doctrine/inflector is locked to version v1.3.0 and an update of this package was not requested.
    - doctrine/inflector v1.3.0 requires php ^7.1 -> your php version (8.1.4) does not satisfy that requirement.

Vai até o erro 44 sempre falando da versão do PHP.

Dai rodo o Update e....

composer update
Loading composer repositories with package information
Info from https://repo.packagist.org: #StandWithUkraine
Updating dependencies
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Root composer.json requires php ^7.1.3 but your php version (8.1.4) does not satisfy that requirement.
  Problem 2
    - laravel/framework[v5.8.0, ..., 5.8.x-dev] require php ^7.1.3 -> your php version (8.1.4) does not satisfy that requirement.
    - Root composer.json requires laravel/framework 5.8.* -> satisfiable by laravel/framework[v5.8.0, ..., 5.8.x-dev]. 

Mais erros de versão.

Se o próprio professor diz que da pra utilizar versões mais recentes não to entendendo.

Que eu faço agora? Um downgrade no php? Só pra acompanhar esse curso?

Obrigado