简体   繁体   English

Laravel中的Composer安装问题

[英]composer install issue in Laravel

I am getting following error message while I am trying to execute 'composer install' command in my cmd. 尝试在cmd中执行“ composer install”命令时,出现以下错误消息。

Installing dependencies (including require-dev) from lock file
Warning: The lock file is not up to date with the latest changes in composer.jso
n. You may be getting outdated dependencies. Run update to update them.
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Installation request for classpreloader/classpreloader 2.0.0 -> satisfiabl
e by classpreloader/classpreloader[2.0.0].
    - classpreloader/classpreloader 2.0.0 requires php >=5.5.9 -> your PHP versi
on (5.5.6) or "config.platform.php" value does not satisfy that requirement.
  Problem 2
    - Installation request for laravel/framework v5.1.8 -> satisfiable by larave
l/framework[v5.1.8].
    - laravel/framework v5.1.8 requires php >=5.5.9 -> your PHP version (5.5.6)
or "config.platform.php" value does not satisfy that requirement.
  Problem 3
    - laravel/framework v5.1.8 requires php >=5.5.9 -> your PHP version (5.5.6)
or "config.platform.php" value does not satisfy that requirement.
    - laracasts/generators 1.1.1 requires illuminate/support ~5.0 -> satisfiable
 by laravel/framework[v5.1.8].
    - Installation request for laracasts/generators 1.1.1 -> satisfiable by lara
casts/generators[1.1.1].

Thanks 谢谢

This line tells you what your error is: 这行告诉您您的错误是:

laravel/framework v5.1.8 requires php >=5.5.9 -> your PHP version (5.5.6) or "config.platform.php" value does not satisfy that requirement. laravel / framework v5.1.8要求php> = 5.5.9->您的PHP版本(5.5.6)或“ config.platform.php”值不满足该要求。

It says that some of the packages you are trying to install require PHP version 5.5.9 or greater and you are using version 5.5.6 它表示您要安装的某些软件包需要PHP 5.5.9或更高版本,而您正在使用5.5.6版

You need to update to a newer version of PHP. 您需要更新到更新版本的PHP。

you can try to force it using 您可以尝试使用

composer install --ignore-platform-reqs

but it'll install code without checking php version - really not recomended (code may not work ) , butter upgrade php version 但是它会在不检查php版本的情况下安装代码-确实不推荐(代码可能无法正常工作),黄油升级php版本

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM