使用Composer安装时出现CodeIgniter 4问题 [英] CodeIgniter 4 problem installing with composer

查看:133
本文介绍了使用Composer安装时出现CodeIgniter 4问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在尝试通过Composer在本地服务器(xampp)上安装CodeIgniter 4时遇到问题

I'm having problems trying to install CodeIgniter 4 via Composer, on a local server (xampp)

引发我的代码如下:

    PS C:\Users\PuercoRico> cd D:\xampp\htdocs
PS D:\xampp\htdocs> composer create-project codeigniter4/appstarter ci4 -s rc
Installing codeigniter4/appstarter (4.0.0-rc.4)
  - Installing codeigniter4/appstarter (4.0.0-rc.4): Loading from cache
Created project in ci4
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
    - codeigniter4/framework v4.0.0-rc.3 requires ext-intl * -> the requested PHP extension intl is missing from your system.
    - codeigniter4/framework v4.0.0-rc.2.1 requires ext-intl * -> the requested PHP extension intl is missing from your system.
    - codeigniter4/framework v4.0.0-rc.2 requires ext-intl * -> the requested PHP extension intl is missing from your system.
    - codeigniter4/framework v4.0.0-rc.1 requires ext-intl * -> the requested PHP extension intl is missing from your system.
    - codeigniter4/framework 4.0.0-rc.4 requires ext-intl * -> the requested PHP extension intl is missing from your system.
    - Installation request for codeigniter4/framework ^4@rc -> satisfiable by codeigniter4/framework[4.0.0-rc.4, v4.0.0-rc.1, v4.0.0-rc.2, v4.0.0-rc.2.1, v4.0.0-rc.3].

  To enable extensions, verify that they are enabled in your .ini files:
    - D:\xampp\php\php.ini
  You can also run `php --ini` inside terminal to see which files are used by PHP in CLI mode.

我正在使用的php版本是7.4.1

The version of php that I am using is 7.4.1

任何想法,可能是错误或如何解决.

Any idea what the error may be or how I can fix it.

推荐答案

您的PHP缺少 intl 扩展名.它可用于格式化货币,数字和日期/时间以及符合UCA的归类,用于消息格式化和规范化文本.等.

Your PHP is missing intl extension. It is useful for formatting currency, number and date/time as well as UCA-conformant collations, for message formatting and normalizing text..etc.

查看Codeignitor 4 [文档] [1]:

Check out Codeignitor 4 [Documentation][1]:

按照将其安装在XAMPP中的步骤-

Follow the steps to install it in XAMPP -

  1. 打开[xampp_folder_path]/php/php.ini进行编辑.
  2. 搜索; extension = intl 并删除; .
  3. 保存php.ini文件并重新启动Apache.

这篇关于使用Composer安装时出现CodeIgniter 4问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆