" laravel新博客"显示PHP版本太低

时间:2017-09-07 07:46:27

标签: php laravel

我的电脑中有多个PHP版本。我想使用PHP 5.6.27创建一个名为" blog"的新项目。我使用" laravel new blog"但它显示了这些错误:

Crafting application...
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.27) 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.27) does not satisfy that requirement.
  Problem 3
    - Installation request for laravel/framework v5.5.2 -> satisfiable by laravel/framework[v5.5.2].
    - laravel/framework v5.5.2 requires php >=7.0 -> your PHP version (5.6.27) does not satisfy that requirement.
  Problem 4
    - Installation request for swiftmailer/swiftmailer v6.0.1 -> satisfiable by swiftmailer/swiftmailer[v6.0.1].
    - swiftmailer/swiftmailer v6.0.1 requires php >=7.0.0 -> your PHP version (5.6.27) does not satisfy that requirement

0 个答案:

没有答案