Your requirements could not be resolved to an installable set of packages.
下载一个包 报了这个错,
还有报错信息是
Problem 1
- intervention/image 2.3.8 requires ext-fileinfo * -> the requested PHP extension fileinfo is missing from your system.
- intervention/image 2.3.8 requires ext-fileinfo * -> the requested PHP extension fileinfo is missing from your system.
- intervention/image 2.3.7 requires ext-fileinfo * -> the requested PHP extension fileinfo is missing from your system.
- intervention/image 2.3.6 requires ext-fileinfo * -> the requested PHP extension fileinfo is missing from your system.
- intervention/image 2.3.5 requires ext-fileinfo * -> the requested PHP extension fileinfo is missing from your system.
- intervention/image 2.3.4 requires ext-fileinfo * -> the requested PHP extension fileinfo is missing from your system.
- intervention/image 2.3.3 requires ext-fileinfo * -> the requested PHP extension fileinfo is missing from your system.
- intervention/image 2.3.2 requires ext-fileinfo * -> the requested PHP extension fileinfo is missing from your system.
- intervention/image 2.3.1 requires ext-fileinfo * -> the requested PHP extension fileinfo is missing from your system.
- intervention/image 2.3.0 requires ext-fileinfo * -> the requested PHP extension fileinfo is missing from your system.
- Installation request for intervention/image ^2.3 -> satisfiable by intervention/image[2.3.0, 2.3.1, 2.3.2, 2.3.3, 2.3.4, 2.3.5, 2.3.6, 2.3.7, 2.3.8].
To enable extensions, verify that they are enabled in those .ini files:
- /usr/local/php/etc/php.ini
- /usr/local/php/etc/php.d/ext-imagick.ini
- /usr/local/php/etc/php.d/ext-memcache.ini
- /usr/local/php/etc/php.d/ext-memcached.ini
- /usr/local/php/etc/php.d/ext-opcache.ini
- /usr/local/php/etc/php.d/ext-redis.ini
You can also run `php --ini` inside terminal to see which files are used by PHP in CLI mode.
Installation failed, reverting ./composer.json to its original content.
看报错信息,发现是我的环境里 的php扩展 fileinfo
没有安装
我的环境是 OneinStack
,所以找到 这个包,然后 在里面执行 ./addons.sh
然后第四项
按照条件执行安装就行了
最后执行 composer require intervention/image
##### Ok
本站(PHP --> Golang)已重构,代码开源
当你能力不能满足你的野心的时候,你就该沉下心来学习