• 端午出行怕拥堵 别慌,这里有一份出行指南 2019-10-18
  • 网约车“黑名单”适逢其时 2019-10-18
  • 其实我们都误会了《魔兽世界》中这些“老实人” BOSS 2019-10-12
  • “2018时光音乐节”落地青岛莱西 胶东半岛最大规模音乐嘉年华 有限公司 莱西 2019-10-12
  • 这样的帖子写主贴反驳,实在丢不起人! 2019-09-16
  • 新疆阿拉山口口岸严防有害生物入境 2019-09-16
  • 感触名家笔下的端午文化 吃香粽原来可以这样"文艺" 2019-09-01
  • 摆脱人类控制?无人战争≠“无人的战争” 2019-09-01
  • 福州率先出台人才共有产权住房政策 工作满12年可获完全产权 2019-08-21
  • 领克02:锁好车门,总想回头多看你一眼 2019-07-12
  • 雄安新区公布非法集资举报电话:最高奖励15000元 2019-07-12
  • 石家庄、定州大沙河惊现3公里“垃圾带” 2019-07-09
  • 儿童掉进冰窟 小伙用双手砸出“生命通道” 2019-07-09
  • 中国丹寨少年亮相世界杯揭幕战 2019-07-08
  • 拉萨市海拔4300米以下再无“无树村 无树户” 2019-07-08
  • 0712-2888027 189-8648-0214
    微信公众号

    孝感风信网络科技有限公司微信公众号

    当前位置: 里昂队徽 > 技术支持 > PHP > You can also run `php --ini` inside terminal to see which files are used by PHP in CLI mode解决方法

    You can also run `php --ini` inside terminal to see which files are used by PHP in CLI mode解决方法

    时间:2019-01-10来源:风信网 点击:
    Laravel项目安装验证码mews/captcha扩展,出现如下错误信息:

    composer require mews/captcha

    Using version ^2.2 for mews/captcha
    ./composer.json has been updated
    Loading composer repositories with package information
    Updating dependencies (including require-dev)
    Your requirements could not be resolved to an installable set of packages.

      Problem 1
        - mews/captcha 2.2.0 requires intervention/image ~2.2 -> satisfiable by intervention/image[2.2.0, 2.2.1, 2.2.2, 2.3.0, 2.3.1, 2.3.10, 2.3.11, 2.3.12, 2.3.13, 2.3.14, 2.3.2, 2.3.3, 2.3.4, 2.3.5, 2.3.6
    , 2.3.7, 2.3.8, 2.3.9, 2.4.0, 2.4.1, 2.4.2, 2.4.x-dev].
        ..........
        - intervention/image 2.2.1 requires ext-fileinfo * -> the requested PHP extension fileinfo is missing from your system.
        - intervention/image 2.2.0 requires ext-fileinfo * -> the requested PHP extension fileinfo is missing from your system.
        - Installation request for mews/captcha ^2.2 -> satisfiable by mews/captcha[2.2.0, 2.2.1, 2.2.2, 2.2.3, 2.2.4].

      To enable extensions, verify that they are enabled in your .ini files:
        - D:\phpStudy\PHPTutorial\php\php-7.2.1-nts\php.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扩展,

    编辑php.ini文件,打开extension=php_fileinfo.dll 就可以了,重新运行composer命令,安装成功

    composer require mews/captcha

    Using version ^2.2 for mews/captcha
    ./composer.json has been updated
    Loading composer repositories with package information
    Updating dependencies (including require-dev)
    Package operations: 2 installs, 0 updates, 0 removals
      - Installing intervention/image (2.4.2): Downloading (100%)
      - Installing mews/captcha (2.2.4): Downloading (100%)
    intervention/image suggests installing ext-imagick (to use Imagick based image processing.)
    intervention/image suggests installing intervention/imagecache (Caching extension for the Intervention Image library)
    Writing lock file
    Generating optimized autoload files
    > Illuminate\Foundation\ComposerScripts::postAutoloadDump
    > @php artisan package:discover --ansi
    Discovered Package: beyondcode/laravel-dump-server
    Discovered Package: fideloper/proxy
    Discovered Package: intervention/image
    Discovered Package: laravel/nexmo-notification-channel
    Discovered Package: laravel/slack-notification-channel
    Discovered Package: laravel/tinker
    Discovered Package: mews/captcha
    Discovered Package: nesbot/carbon
    Discovered Package: nunomaduro/collision
    Package manifest generated successfully.
    热门关键词:PHPphp.iniCLI modePHP CLI
    栏目列表
    推荐内容
    热点内容
    展开
  • 端午出行怕拥堵 别慌,这里有一份出行指南 2019-10-18
  • 网约车“黑名单”适逢其时 2019-10-18
  • 其实我们都误会了《魔兽世界》中这些“老实人” BOSS 2019-10-12
  • “2018时光音乐节”落地青岛莱西 胶东半岛最大规模音乐嘉年华 有限公司 莱西 2019-10-12
  • 这样的帖子写主贴反驳,实在丢不起人! 2019-09-16
  • 新疆阿拉山口口岸严防有害生物入境 2019-09-16
  • 感触名家笔下的端午文化 吃香粽原来可以这样"文艺" 2019-09-01
  • 摆脱人类控制?无人战争≠“无人的战争” 2019-09-01
  • 福州率先出台人才共有产权住房政策 工作满12年可获完全产权 2019-08-21
  • 领克02:锁好车门,总想回头多看你一眼 2019-07-12
  • 雄安新区公布非法集资举报电话:最高奖励15000元 2019-07-12
  • 石家庄、定州大沙河惊现3公里“垃圾带” 2019-07-09
  • 儿童掉进冰窟 小伙用双手砸出“生命通道” 2019-07-09
  • 中国丹寨少年亮相世界杯揭幕战 2019-07-08
  • 拉萨市海拔4300米以下再无“无树村 无树户” 2019-07-08
  • 重庆时时彩计划 稳定版 抢庄棋牌 排列三杀一码 彩宝网是真的假的 t6设计坑 网络mg电子游戏 金顶国际娱乐 通比牛牛出牛牛规律 大乐透怎么是前跨后跨 龙虎一般打机器人怎么打 时时彩平台注册 华彩彩票是真的吗 手机上玩的二八杠游戏 时时彩猜必出号码 扑克21点要牌技巧 天津快乐十分计划软件app