docker中的Yii 2入门工具包-composer创建项目-您的要求无法解决为一组可安装的软件包

问题描述 投票:-1回答:1

问题是,尽管非常精确地遵循文档,但在Docker中通过composer create-project命令创建Yii 2入门工具包项目时,还是>

https://github.com/yii2-starter-kit/yii2-starter-kit/blob/master/docs/installation.md#get-source-code-via-composer

composer create-project yii2-starter-kit/yii2-starter-kit myproject.com

导致错误

  Problem 1
    - The requested PHP extension ext-intl * is missing from your system. Install or enable PHP's intl extension.
  Problem 2
    - Installation request for league/uri 5.3.0 -> satisfiable by league/uri[5.3.0].
    - league/uri 5.3.0 requires ext-intl * -> the requested PHP extension intl is missing from your system.
  Problem 3
    - Installation request for league/uri-components 1.8.2 -> satisfiable by league/uri-components[1.8.2].
    - league/uri-components 1.8.2 requires ext-intl * -> the requested PHP extension intl is missing from your system.
  Problem 4
    - Installation request for league/uri-hostname-parser 1.1.1 -> satisfiable by league/uri-hostname-parser[1.1.1].
    - league/uri-hostname-parser 1.1.1 requires ext-intl * -> the requested PHP extension intl is missing from your system.
  Problem 5
    - Installation request for league/uri-manipulations 1.5.0 -> satisfiable by league/uri-manipulations[1.5.0].
    - league/uri-manipulations 1.5.0 requires ext-intl * -> the requested PHP extension intl is missing from your system.
  Problem 6
    - league/uri 5.3.0 requires ext-intl * -> the requested PHP extension intl is missing from your system.
    - trntv/yii2-glide 1.2.2 requires league/uri ^5.0 -> satisfiable by league/uri[5.3.0].
    - Installation request for trntv/yii2-glide 1.2.2 -> satisfiable by trntv/yii2-glide[1.2.2].

  To enable extensions, verify that they are enabled in your .ini files:
    - C:\xampp\php\php.ini

问题是,尽管完全按照文档https://github.com/yii2-starter -...的方式通过Docker中的composer create-project命令创建Yii 2入门工具包项目,但仍在严格按照文档进行操作时]] >

使用composer create-project命令被列为创建项目的可用选项之一

https://github.com/yii2-starter-kit/yii2-starter-kit/blob/master/docs/installation.md#get-source-code-via-composer

但是,在docker内部使用它的更好方法是通过git检索文件

git clone https://github.com/yii2-starter-kit/yii2-starter-kit.git 删除项目的git日志的.git文件夹,或忽略初始错误

随后通过内部docker composer环境安装项目依赖项使用命令

composer run-script docker:build

因为该环境已为包含所有此类依赖库而特别地预先准备,并且完全防止了此类错误

docker yii2
1个回答
0
投票

使用composer create-project命令被列为创建项目的可用选项之一

© www.soinside.com 2019 - 2024. All rights reserved.