gpt4 book ai didi

Yii2 |需要凉亭 Assets /jquery

转载 作者:行者123 更新时间:2023-12-03 15:05:51 24 4
gpt4 key购买 nike

我正在尝试通过 composer 安装 Yii2:

composer global require "fxp/composer-asset-plugin:~1.1.1"
composer create-project --prefer-dist yiisoft/yii2-app-basic basic

~/.composer/composer.json
{
"require": {
"fxp/composer-asset-plugin": "~1.1.1"
}
}

结果:
Problem 1
- yiisoft/yii2 2.0.x-dev requires bower-asset/jquery 2.1.*@stable | 1.11.*@stable -> no matching package found.
- yiisoft/yii2 dev-master requires bower-asset/jquery 2.1.*@stable | 1.11.*@stable -> no matching package found.
- yiisoft/yii2 2.0.6 requires bower-asset/jquery 2.1.*@stable | 1.11.*@stable -> no matching package found.
- yiisoft/yii2 2.0.5 requires bower-asset/jquery 2.1.*@stable | 1.11.*@stable -> no matching package found.
- Installation request for yiisoft/yii2 >=2.0.5 -> satisfiable by yiisoft/yii2[2.0.5, 2.0.6, dev-master, 2.0.x-dev].

我做错了什么?

最佳答案

您可以尝试更新的版本:

composer global require "fxp/composer-asset-plugin:^1.2.0"

然后:
composer create-project --prefer-dist yiisoft/yii2-app-basic basic

非安装 Bower-Asset 方式:

您可以通过 Install from an Archive File 下载 Yii2 .通过这种方式,您将不需要处理 Bower 问题。

此外,如果您需要在不处理 Bower 的情况下更新 composer,您可以要求 yidas/yii2-composer-bower-skip之前 yiisoft/yii2composer.json文件:
"require": {
"php": ">=5.4.0",
"yidas/yii2-composer-bower-skip": "~2.0.0",
"yiisoft/yii2": "~2.0.5",
"yiisoft/yii2-bootstrap": "~2.0.0"
}

Instead, if you want to create yii2 project without bower-asset issue:

yidas/yii2-app-basic:

composer create-project yidas/yii2-app-basic

yidas/yii2-app-advanced:

composer create-project yidas/yii2-app-advanced



From Yii 2.0.13, it used Asset-Packagist solution instead of fxp/composer-asset-plugin

关于Yii2 |需要凉亭 Assets /jquery,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34964462/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com