Erro com composer install
[Finalizado Pelo Aluno]
Ao rodar o comando composer install, recebo a seguinte mensagem de erro. Tentei procurar no dockerfile e docker-compose.yml a versão do PHP, inclusive, não encontrei, pois quando rodei ''php -v'', vi que está sendo utilizado o 7.4 ele pede 8^
valxdotcom@f4301f5fa87b:/var/www$ composer install
No composer.lock file present. Updating dependencies to latest instead of installing from lock file. See https://getcomposer.org/install for more information.
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 ^8.0.2 but your php version (7.4.28) does not satisfy that requirement.
Problem 2
- Root composer.json requires nunomaduro/collision ^6.1 -> satisfiable by nunomaduro/collision[v6.1.0].
- nunomaduro/collision v6.1.0 requires php ^8.0.0 -> your php version (7.4.28) does not satisfy that requirement.
Problem 3
- laravel/framework[v9.2.0, ..., 9.x-dev] require php ^8.0.2 -> your php version (7.4.28) does not satisfy that requirement.
- Root composer.json requires laravel/framework ^9.2 -> satisfiable by laravel/framework[v9.2.0, ..., 9.x-dev].
Consegui resolver!
Achei a versão PHP no Dockerfile, na primeira linha "FROM".
Alterei para PHP:8.0.16-fpm
Rodei os comandos
docker-compose down
docker-compose build --no-cache
docker-compose up
Precisa estar logado para conseguir responder a este ticket!
Clique Aqui Para Entrar!