1
resposta

Erro na instalação do laravel

C:\Users\vinicius\Google Drive\Alura\Laravel\estoque
λ composer install
Loading composer repositories with package information
Installing dependencies (including require-dev) from lock file
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - This package requires php >=7.0.0 but your PHP version (5.6.31) does not satisfy that requirement.

  Problem 2
    - Installation request for doctrine/inflector v1.2.0 -> satisfiable by doctrine/inflector[v1.2.0].
    - doctrine/inflector v1.2.0 requires php ^7.0 -> your PHP version (5.6.31) does not satisfy that requirement.
  Problem 3
    - Installation request for laravel/framework v5.5.17 -> satisfiable by laravel/framework[v5.5.17].
    - laravel/framework v5.5.17 requires php >=7.0 -> your PHP version (5.6.31) does not satisfy that requirement.
  Problem 4
    - Installation request for swiftmailer/swiftmailer v6.0.2 -> satisfiable by swiftmailer/swiftmailer[v6.0.2].
    - swiftmailer/swiftmailer v6.0.2 requires php >=7.0.0 -> your PHP version (5.6.31) does not satisfy that requirement.
  Problem 5
    - Installation request for phpdocumentor/reflection-docblock 4.1.1 -> satisfiable by phpdocumentor/reflection-docblock[4.1.1].
    - phpdocumentor/reflection-docblock 4.1.1 requires php ^7.0 -> your PHP version (5.6.31) does not satisfy that requirement.
  Problem 6
    - Installation request for phpunit/php-code-coverage 5.2.2 -> satisfiable by phpunit/php-code-coverage[5.2.2].
    - phpunit/php-code-coverage 5.2.2 requires php ^7.0 -> your PHP version (5.6.31) does not satisfy that requirement.
  Problem 7
    - Installation request for phpunit/php-token-stream 2.0.1 -> satisfiable by phpunit/php-token-stream[2.0.1].
    - phpunit/php-token-stream 2.0.1 requires php ^7.0 -> your PHP version (5.6.31) does not satisfy that requirement.
  Problem 8
    - Installation request for phpunit/phpunit 6.4.3 -> satisfiable by phpunit/phpunit[6.4.3].
    - phpunit/phpunit 6.4.3 requires php ^7.0 -> your PHP version (5.6.31) does not satisfy that requirement.
  Problem 9
    - Installation request for phpunit/phpunit-mock-objects 4.0.4 -> satisfiable by phpunit/phpunit-mock-objects[4.0.4].
    - phpunit/phpunit-mock-objects 4.0.4 requires php ^7.0 -> your PHP version (5.6.31) does not satisfy that requirement.
  Problem 10
    - Installation request for sebastian/comparator 2.0.2 -> satisfiable by sebastian/comparator[2.0.2].

    - sebastian/comparator 2.0.2 requires php ^7.0 -> your PHP version (5.6.31) does not satisfy that requirement.
  Problem 11
    - Installation request for sebastian/diff 2.0.1 -> satisfiable by sebastian/diff[2.0.1].
    - sebastian/diff 2.0.1 requires php ^7.0 -> your PHP version (5.6.31) does not satisfy that requirement.
  Problem 12
    - Installation request for sebastian/environment 3.1.0 -> satisfiable by sebastian/environment[3.1.0].
    - sebastian/environment 3.1.0 requires php ^7.0 -> your PHP version (5.6.31) does not satisfy that requirement.
  Problem 13
    - Installation request for sebastian/exporter 3.1.0 -> satisfiable by sebastian/exporter[3.1.0].
    - sebastian/exporter 3.1.0 requires php ^7.0 -> your PHP version (5.6.31) does not satisfy that requirement.
  Problem 14
    - Installation request for sebastian/global-state 2.0.0 -> satisfiable by sebastian/global-state[2.0.0].
    - sebastian/global-state 2.0.0 requires php ^7.0 -> your PHP version (5.6.31) does not satisfy that requirement.
  Problem 15
    - Installation request for sebastian/object-enumerator 3.0.3 -> satisfiable by sebastian/object-enumerator[3.0.3].
    - sebastian/object-enumerator 3.0.3 requires php ^7.0 -> your PHP version (5.6.31) does not satisfy that requirement.
  Problem 16
    - Installation request for sebastian/object-reflector 1.1.1 -> satisfiable by sebastian/object-reflector[1.1.1].
    - sebastian/object-reflector 1.1.1 requires php ^7.0 -> your PHP version (5.6.31) does not satisfy that requirement.
  Problem 17
    - Installation request for sebastian/recursion-context 3.0.0 -> satisfiable by sebastian/recursion-context[3.0.0].
    - sebastian/recursion-context 3.0.0 requires php ^7.0 -> your PHP version (5.6.31) does not satisfy that requirement.
  Problem 18
    - Installation request for theseer/tokenizer 1.1.0 -> satisfiable by theseer/tokenizer[1.1.0].
    - theseer/tokenizer 1.1.0 requires php ^7.0 -> your PHP version (5.6.31) does not satisfy that requirement.
  Problem 19
    - laravel/framework v5.5.17 requires php >=7.0 -> your PHP version (5.6.31) does not satisfy that requirement.
    - laravel/tinker v1.0.2 requires illuminate/console ~5.1 -> satisfiable by laravel/framework[v5.5.17].
    - Installation request for laravel/tinker v1.0.2 -> satisfiable by laravel/tinker[v1.0.2].

Está aparecendo estes erros ao instalar

1 resposta

Oi Vinícius, você me parece estar tentando instalar a versão mais recente do Laravel, 5.5 eu acho, mas ela só funciona se você tiver o PHP 7 instalado. atualiza o PHP e tenta novamente? Ou você pode instalar a versão do Laravel que é usada no curso, 5.2 deve funcionar.