簡體   English   中英

Laravel中的Composer安裝問題

[英]composer install issue in Laravel

嘗試在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].

謝謝

這行告訴您您的錯誤是:

laravel / framework v5.1.8要求php> = 5.5.9->您的PHP版本(5.5.6)或“ config.platform.php”值不滿足該要求。

它表示您要安裝的某些軟件包需要PHP 5.5.9或更高版本,而您正在使用5.5.6版

您需要更新到更新版本的PHP。

您可以嘗試使用

composer install --ignore-platform-reqs

但是它會在不檢查php版本的情況下安裝代碼-確實不推薦(代碼可能無法正常工作),黃油升級php版本

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM