尝试在Laravel 5项目中运行composer install时出错

时间:2016-01-29 03:32:50

标签: php laravel-5 composer-php

我尝试运行composer install来安装Laravel 5项目中的依赖项,但是我收到了这个错误:

$ 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
    - Installation request for intervention/image 2.3.4 -> satisfiable by intervention/image[2.3.4].
    - intervention/image 2.3.4 requires ext-fileinfo * -> the requested PHP extension fileinfo is missing from your system.

我听说有些人说我在PHP.ini文件中添加了一些内容,但我不知道应该配置哪个PHP.ini,因为我有2 PHP.ini }文件,XAMPP中的1和IISEXPRESS中的1。我不知道如何解决这个问题,请任何帮助将不胜感激。感谢。

1 个答案:

答案 0 :(得分:1)

我移动了我的作曲家,并开始得到同样的错误。所以我删除了PHP7.0并安装了7.1并解决了这个问题。我几乎可以肯定我可以运行7.0以下的命令,它也可以解决这个问题。

<强> 7.1

sudo apt install -y php7.1 php7.1-cli php7.1-common libapache2-mod-php7.1 php7.1-mysql php7.1-fpm php7.1-curl php7.1-gd php7.1-bz2 php7.1-mcrypt php7.1-json php7.1-tidy php7.1-mbstring php-redis php-memcached

<强> 7.0

sudo apt install -y php7.0 libapache2-mod-php7.0 php7.0-cli php7.0-common php7.0-mbstring php7.0-gd php7.0-intl php7.0-xml php7.0-mysql php7.0-mcrypt php7.0-zip php7.0-fpm php7.0-bz2 php7.0-json php7.0-tidy php-redis  php-memcached 
相关问题