Я не могу установить laravel 6, даже мой php составляет 7,2 - PullRequest
0 голосов
/ 10 февраля 2020

Я работаю на своем локальном компьютере (сервере). Это первый раз для установки Laravel 6. Набрав эту команду,

Laravel new project

Сказанное

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.2 but your HHVM version does not satisfy that requirement.
  Problem 2
    - Installation request for doctrine/lexer 1.2.0 -> satisfiable by doctrine/lexer[1.2.0].
    - doctrine/lexer 1.2.0 requires php ^7.2 -> your PHP version (7.1.26) does not satisfy that requirement.
  Problem 3
    - Installation request for laravel/framework v6.14.0 -> satisfiable by laravel/framework[v6.14.0].
    - laravel/framework v6.14.0 requires php ^7.2 -> your PHP version (7.1.26) does not satisfy that requirement.
  Problem 4
    - Installation request for laravel/tinker v2.2.0 -> satisfiable by laravel/tinker[v2.2.0].
    - laravel/tinker v2.2.0 requires php ^7.2 -> your PHP version (7.1.26) does not satisfy that requirement.
  Problem 5
    - Installation request for monolog/monolog 2.0.2 -> satisfiable by monolog/monolog[2.0.2].
    - monolog/monolog 2.0.2 requires php ^7.2 -> your PHP version (7.1.26) does not satisfy that requirement.
  Problem 6
    - Installation request for symfony/css-selector v5.0.4 -> satisfiable by symfony/css-selector[v5.0.4].
    - symfony/css-selector v5.0.4 requires php ^7.2.5 -> your PHP version (7.1.26) does not satisfy that requirement.
  Problem 7
    - Installation request for symfony/mime v5.0.4 -> satisfiable by symfony/mime[v5.0.4].
    - symfony/mime v5.0.4 requires php ^7.2.5 -> your PHP version (7.1.26) does not satisfy that requirement.
  Problem 8
    - Installation request for symfony/service-contracts v2.0.1 -> satisfiable by symfony/service-contracts[v2.0.1].
    - symfony/service-contracts v2.0.1 requires php ^7.2.5 -> your PHP version (7.1.26) does not satisfy that requirement.
  Problem 9
    - Installation request for symfony/translation-contracts v2.0.1 -> satisfiable by symfony/translation-contracts[v2.0.1].
    - symfony/translation-contracts v2.0.1 requires php ^7.2.5 -> your PHP version (7.1.26) does not satisfy that requirement.
  Problem 10
    - Installation request for phpdocumentor/reflection-docblock 5.0.0 -> satisfiable by phpdocumentor/reflection-docblock[5.0.0].
    - phpdocumentor/reflection-docblock 5.0.0 requires php ^7.2 -> your PHP version (7.1.26) does not satisfy that requirement.
  Problem 11
    - Installation request for phpunit/php-code-coverage 7.0.10 -> satisfiable by phpunit/php-code-coverage[7.0.10].
    - phpunit/php-code-coverage 7.0.10 requires php ^7.2 -> your PHP version (7.1.26) does not satisfy that requirement.
  Problem 12
    - Installation request for phpunit/phpunit 8.5.2 -> satisfiable by phpunit/phpunit[8.5.2].
    - phpunit/phpunit 8.5.2 requires php ^7.2 -> your PHP version (7.1.26) does not satisfy that requirement.
  Problem 13
    - Installation request for sebastian/global-state 3.0.0 -> satisfiable by sebastian/global-state[3.0.0].
    - sebastian/global-state 3.0.0 requires php ^7.2 -> your PHP version (7.1.26) does not satisfy that requirement.
  Problem 14
    - Installation request for sebastian/type 1.1.3 -> satisfiable by sebastian/type[1.1.3].
    - sebastian/type 1.1.3 requires php ^7.2 -> your PHP version (7.1.26) does not satisfy that requirement.
  Problem 15
    - doctrine/lexer 1.2.0 requires php ^7.2 -> your PHP version (7.1.26) does not satisfy that requirement.
    - egulias/email-validator 2.1.15 requires doctrine/lexer ^1.0.1 -> satisfiable by doctrine/lexer[1.2.0].
    - Installation request for egulias/email-validator 2.1.15 -> satisfiable by egulias/email-validator[2.1.15].

Я использую сервер wamp

enter image description here

Моя composer версия

enter image description here

CLI версия

enter image description here

Как это исправить? заранее спасибо!

1 Ответ

1 голос
/ 10 февраля 2020

Похоже, ваша командная строка использует другую версию PHP (кажется, HHVM). Попробуйте ввести в командной строке

where php

и проверьте, совпадает ли указанный путь в папке установки WAMP

Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...